8.2.2.1 Loading SecureENCODE SDK DLL
8.2.2.1 Loading the SecureENCODE SDK DLL
Loading of SecureENCODE SDK DLL
Here are code snippets on how to perform this action:
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* @brief Load SecureEncodeSDK DLL
*
* @param no parameters. uses the constant SECURE_ENCODE_SDK_DLL_NAME_x86
*
* @return Loads the DLL that implemented SecureENCODE function.
*
*/
int32_t Load_SecureEncodeSDK_DLL()
{
h_SecureEncodeSDK_DLL_x86 = LoadLibrary(SECURE_ENCODE_SDK_DLL_NAME_x86);
if (h_SecureEncodeSDK_DLL_x86 != NULL)
{
wprintf(L"\n Successfuly loaded SecureENCODE x86 DLL {%s}", SECURE_ENCODE_SDK_DLL_NAME_x86);
return 0x00;
}
return 0x01;
}
VB .NET
1
2
3
Dim SecureENCODE_LibraryHandle As IntPtr
SecureENCODE_LibraryHandle = LoadLibrary(SecureENCODE_DLL_Path_)
C#
1
2
3
private IntPtr m_hEncodeDll_x86 = IntPtr.Zero;
m_hEncodeDll_x86 = LoadLibrary(cs_SD_SDK_SECURE_ENCODE_DLL_NAME);
DELPHI
1
2
3
4
5
6
var
m_useXtremeDelta: boolean;
SecureENCODE_DLL_Handle: HMODULE;
begin
SecureENCODE_DLL_Handle := LoadLibrary(SecureDELTA_DLL_Record.SecureENCODE_DLL);