diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-01 12:05:02 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-01 12:05:02 +0300 |
commit | 5900716291f8bb00a062c1c9f169c4ba8671c759 (patch) | |
tree | 9c247dc2470a1f37cc1b23f8af82f78151bef745 /modules/example/main.cpp | |
parent | 4017aaaa4545a001b98ff85ba134f9695ce07e35 (diff) |
new file: api/api.h
modified: core/main.cpp
new file: modules/example/main.cpp
Diffstat (limited to 'modules/example/main.cpp')
-rw-r--r-- | modules/example/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 <windows.h> + +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; +} + + |