summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/example/main.cpp12
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;
+}
+
+