00001 /* 00002 * Entry point for the DLL application.. 00003 * 00004 * Author: 00005 * Tomas Mrkvicka 00006 * xmrkvi03@stud.fit.vutbr.cz 00007 * 00008 */ 00009 00010 #include "stdafx.h" 00011 00012 /** Standardni vstupni funkce DLL knihovny. 00013 * 00014 * \param hinstDLL [in] handle aktualni instance processu 00015 * \param fdwReason [in] duvod zavolani teto funkce 00016 * \param lpReserved [in] nepouzito 00017 */ 00018 BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpReserved) 00019 { 00020 // Perform actions based on the reason for calling. 00021 switch( fdwReason ) 00022 { 00023 case DLL_PROCESS_ATTACH: 00024 // Initialize once for each new process. 00025 // Return FALSE to fail DLL load. 00026 break; 00027 00028 case DLL_THREAD_ATTACH: 00029 // Do thread-specific initialization. 00030 break; 00031 00032 case DLL_THREAD_DETACH: 00033 // Do thread-specific cleanup. 00034 break; 00035 00036 case DLL_PROCESS_DETACH: 00037 // Perform any necessary cleanup. 00038 break; 00039 } 00040 00041 return TRUE; // Successful DLL_PROCESS_ATTACH. 00042 } 00043