1 2 3 4 5 6 7 8 9 10 11 12 13 14
// dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" HINSTANCE hInst; BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { hInst = hModule; return TRUE; }