/////////////////////////////////////////////////////////////////////////////// // CardDllEntry - the main dll entry point // Input: hInstance - the instance that is attaching // Reason - the reason for attaching // pReserved - // Output: // Return: TRUE // Notes: this is only used to initialize the zones /////////////////////////////////////////////////////////////////////////////// BOOL DllEntry(HINSTANCE hInstance, ULONG Reason, LPVOID pReserved) { if ( Reason == DLL_PROCESS_ATTACH ) { SD_DEBUG_ZONE_REGISTER(hInstance, SDH_REGISTRY_BASE_PATH); DisableThreadLibraryCalls( (HMODULE) hInstance ); if( !SDInitializeCardLib() ) { return FALSE; } else if( !SD_API_SUCCESS( SDHCDInitializeHCLib() ) ) { SDDeinitializeCardLib(); return FALSE; } } if ( Reason == DLL_PROCESS_DETACH ) { SDHCDDeinitializeHCLib(); SDDeinitializeCardLib(); } return(TRUE); }
/////////////////////////////////////////////////////////////////////////////// // DllEntry - the main dll entry point // Input: hInstance - the instance that is attaching // Reason - the reason for attaching // pReserved - not much // Output: // Return: always returns TRUE // Notes: this is only used to initialize the zones /////////////////////////////////////////////////////////////////////////////// extern "C" BOOL WINAPI DllEntry(HINSTANCE hInstance, ULONG Reason, LPVOID pReserved) { BOOL fRet = TRUE; if ( Reason == DLL_PROCESS_ATTACH ) { DisableThreadLibraryCalls((HMODULE) hInstance); if (!SDInitializeCardLib()) { fRet = FALSE; } } else if ( Reason == DLL_PROCESS_DETACH ) { SDDeinitializeCardLib(); } return fRet; }
/////////////////////////////////////////////////////////////////////////////// // DllEntry - the main dll entry point // Input: hInstance - the instance that is attaching // Reason - the reason for attaching // pReserved - not much // Output: // Return: always returns TRUE // Notes: this is only used to initialize the zones /////////////////////////////////////////////////////////////////////////////// extern BOOL WINAPI DllEntry(HINSTANCE hInstance, ULONG Reason, LPVOID pReserved) { BOOL fRet = TRUE; if ( Reason == DLL_PROCESS_ATTACH ) { DEBUGREGISTER(hInstance); if (!SDInitializeCardLib()) { fRet = FALSE; } } else if ( Reason == DLL_PROCESS_DETACH ) { SDDeinitializeCardLib(); } return fRet; }