#define WIN32_LEAN_AND_MEAN #include #undef WIN32_LEAN_AND_MEAN #include extern "C" { BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); } #include DECLARE_CYGWIN_DLL( DllMain ); HINSTANCE __hDllInstance_base; BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) { __hDllInstance_base = hInst; return TRUE; }