mirror of
https://github.com/x64dbg/testplugin.git
synced 2026-11-08 08:08:18 -10:00
44 lines
944 B
C++
44 lines
944 B
C++
#include "pluginmain.h"
|
|
#include "test.h"
|
|
|
|
#define plugin_name "testplugin"
|
|
#define plugin_version 1
|
|
|
|
int pluginHandle;
|
|
HWND hwndDlg;
|
|
int hMenu;
|
|
int hMenuDisasm;
|
|
int hMenuDump;
|
|
int hMenuStack;
|
|
|
|
DLL_EXPORT bool pluginit(PLUG_INITSTRUCT* initStruct)
|
|
{
|
|
initStruct->pluginVersion = plugin_version;
|
|
initStruct->sdkVersion = PLUG_SDKVERSION;
|
|
strcpy(initStruct->pluginName, plugin_name);
|
|
pluginHandle = initStruct->pluginHandle;
|
|
testInit(initStruct);
|
|
return true;
|
|
}
|
|
|
|
DLL_EXPORT bool plugstop()
|
|
{
|
|
testStop();
|
|
return true;
|
|
}
|
|
|
|
DLL_EXPORT void plugsetup(PLUG_SETUPSTRUCT* setupStruct)
|
|
{
|
|
hwndDlg = setupStruct->hwndDlg;
|
|
hMenu = setupStruct->hMenu;
|
|
hMenuDisasm = setupStruct->hMenuDisasm;
|
|
hMenuDump = setupStruct->hMenuDump;
|
|
hMenuStack = setupStruct->hMenuStack;
|
|
testSetup();
|
|
}
|
|
|
|
extern "C" DLL_EXPORT BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
{
|
|
return TRUE;
|
|
}
|