Max 5 API Reference
00001 #ifdef WIN_VERSION 00002 00003 #include "jit.common.h" 00004 00005 static CHAR s_external_path[ MAX_PATH ]; 00006 static CHAR s_external_path_pstr[ MAX_PATH ]; 00007 LPSTR g_external_path = s_external_path; 00008 LPSTR g_external_path_pstr = s_external_path_pstr; 00009 HINSTANCE _jitlib_hinst = NULL; 00010 long initialize(void); 00011 void terminate(void); 00012 00013 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved ) 00014 { 00015 // Perform actions based on the reason for calling. 00016 switch( fdwReason ) 00017 { 00018 case DLL_PROCESS_ATTACH: 00019 //jit_object_post((t_object *)x,"jitlib process attach"); 00020 // Initialize once for each new process. Return FALSE to fail DLL load. 00021 _jitlib_hinst = hinstDLL; 00022 GetModuleFileName( _jitlib_hinst, g_external_path, sizeof( s_external_path ) ); 00023 ctopcpy( g_external_path_pstr, g_external_path ); 00024 //InitializeQTML(0); 00025 initialize(); 00026 break; 00027 case DLL_THREAD_ATTACH: 00028 // Do thread-specific initialization. 00029 //jit_object_post((t_object *)x,"jitlib thread attach"); 00030 break; 00031 case DLL_THREAD_DETACH: 00032 // Do thread-specific cleanup. 00033 //jit_object_post((t_object *)x,"jitlib thread detach"); 00034 break; 00035 case DLL_PROCESS_DETACH: 00036 // Perform any necessary cleanup. 00037 //jit_object_post((t_object *)x,"jitlib process detach"); 00038 break; 00039 } 00040 return TRUE; 00041 } 00042 00043 #endif WIN_VERSION 00044
Copyright © 2008, Cycling '74