1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <Windows.h> #include "newpluginapi.h" struct CMPlugin : public PLUGIN<CMPlugin> { }; static BOOL WINAPI RawDllMain(HINSTANCE hInstance, DWORD, LPVOID) { g_plugin.setInst(hInstance); return TRUE; } extern "C" _pfnCrtInit _pRawDllMain = &RawDllMain;