-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestPlugin.cpp
50 lines (43 loc) · 1.41 KB
/
TestPlugin.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "stdafx.h"
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
extern "C" __declspec(dllexport)
bool __stdcall SecureEngineInitialize(void)
{
MessageBoxA(NULL, "Calling SecureEngineInitialize", "TestPlugin", MB_OK | MB_ICONINFORMATION);
return true; // Continue execution
}
extern "C" __declspec(dllexport)
bool __stdcall SecureEngineFinalize(void)
{
MessageBoxA(NULL, "Calling SecureEngineFinalize", "TestPlugin", MB_OK | MB_ICONINFORMATION);
return true; // Continue execution
}
extern "C" __declspec(dllexport)
bool __stdcall SecureEngineShowCustomMessageA(
int MsgId,
char* MsgBody)
{
MessageBoxA(NULL, MsgBody, "SecureEngineShowCustomMessageA", MB_OK | MB_ICONINFORMATION);
return true; // TRUE = Message has been handled. The protection won't display it
}
extern "C" __declspec(dllexport)
bool __stdcall SecureEngineGetFingerPrintA(
char* pFingerprint)
{
MessageBoxA(NULL, pFingerprint, "SecureEngineGetFingerPrintA", MB_OK | MB_ICONINFORMATION);
return true; // TRUE = Message has been handled. The protection won't display it
}
extern "C" __declspec(dllexport)
bool __stdcall SecureEngineGetEncryptionKey(
int ZoneId,
char* pOutputEncryptionKey)
{
strcpy(pOutputEncryptionKey, "My Encryption Key");
return true; // Continue execution
}