00001 00002 #include <windows.h> 00003 #include <stdio.h> 00004 #include <stdlib.h> 00005 #include "globals.h" 00006 00043 BOOL APIENTRY DllMain (HINSTANCE hInst, // Library instance handle. 00044 DWORD reason, // Reason this function is being called. 00045 LPVOID reserved ) // Not used. 00046 { 00047 switch (reason) 00048 { 00049 case DLL_PROCESS_ATTACH: 00050 break; 00051 00052 case DLL_PROCESS_DETACH: 00053 break; 00054 00055 case DLL_THREAD_ATTACH: 00056 break; 00057 00058 case DLL_THREAD_DETACH: 00059 break; 00060 } 00061 00062 // Returns TRUE on success, FALSE on failure 00063 return TRUE; 00064 }