From 5900716291f8bb00a062c1c9f169c4ba8671c759 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 1 Aug 2010 12:05:02 +0300 Subject: new file: api/api.h modified: core/main.cpp new file: modules/example/main.cpp --- modules/example/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/example/main.cpp (limited to 'modules/example/main.cpp') diff --git a/modules/example/main.cpp b/modules/example/main.cpp new file mode 100644 index 0000000..9b2af1b --- /dev/null +++ b/modules/example/main.cpp @@ -0,0 +1,12 @@ +#include + +HINSTANCE hDllInstance=NULL; +BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, +LPVOID lpReserved ) +{ + if (ul_reason_for_call == DLL_PROCESS_ATTACH) + hDllInstance = (HINSTANCE)hModule; + return TRUE; +} + + -- cgit v1.2.3