8.2.4.4 Call and execute exported functions
8.2.4.4 Call and Execute SecureSDK Functions
Call and Execute SecureSDK functions
Here are code snippets on how to perform this action:
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
*
* Definitions of SecureDECODE function prototype
*
* @param _encode_param_struct The SD_SDK_SECURE_DECODE_PARAMS structure which contains all data required to perform the SecureDECODE operation
*
*/
typedef int32_t (__stdcall *PF_SECUREDELTA_SDK_SECUREDECODE_MAIN)(SD_SDK_SECURE_DECODE_PARAMS& _encode_param_struct);
lpfnSecureDECODE_Dll_MainDecodeFnct = (PF_SECUREDELTA_SDK_SECUREDECODE_MAIN)GetProcAddress(h_SecureDecodeSDK_DLL_Handler_x86, SecureDELTA_SDK_DLL_SecureDECODE_Main_Func_);
returnVal = lpfnSecureDECODE_Dll_MainDecodeFnct(_sdk_securedecode_param);
VB .NET
1
2
3
4
5
Dim _secure_decode_struct As SD_SDK_SecureDECODE_Struct_PARAM
...
Dim result As Int32 = secureDecodeMain(_secure_decode_struct)
C#
1
2
3
4
5
SD_SDK_SecureDECODE_Struct _decode_struct = new SD_SDK_SecureDECODE_Struct();
...
Int32 result = _decode_main_proc(ref _decode_struct);
DELPHI
1
2
3
4
5
6
7
8
9
type
TSD_SDK_SecureCallback_Decode_Main_Func = function(SD_SDK_SECURE_DECODE_CALLBACK_PARAM: struct_CB_SD_SECURE_DECODE_CALLBACK_TYPE; pVoidPtr : Pointer; Caller_HWnD : HWnd) : SD_SDK_SECURE_DECODE_CALLBACK_EVENT_ID; stdcall;
var
resSecureDECODE : LongInt;
decodeDLLHeaderStruct : struct_SD_SDK_SECURE_DECODE_PARAM ;
SD_SDK_SecureDECODE_Main_Func: TSD_SDK_SecureDECODE_Main_Func;
resSecureDECODE := SD_SDK_SecureDECODE_Main_Func(decodeDLLHeaderStruct);