ANI_RES.C
Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 #include <windows.h>
00011 
00012 static HINSTANCE hInstance;
00013 
00014 #if __WATCOMC__
00015 int APIENTRY LibMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00016 #else
00017 int APIENTRY DllMain(HANDLE hDLL, DWORD dwReason, LPVOID lpReserved){
00018 #endif
00019   static BOOL unregister=TRUE;
00020   switch (dwReason) {
00021     case DLL_PROCESS_ATTACH: {
00022       hInstance=hDLL;
00023 
00024       break;
00025     }
00026     case DLL_PROCESS_DETACH:
00027 
00028       break;
00029   }
00030   return (int)TRUE;
00031 }
00032 
00033 HINSTANCE ResourceX(void){
00034  return hInstance;
00035 }