Changeset 6639 for trunk/src/wnaspi32/initterm.cpp
- Timestamp:
- Sep 5, 2001, 12:30:21 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wnaspi32/initterm.cpp
r5135 r6639 1 /* 1 /* $Id: initterm.cpp,v 1.7 2001-09-05 10:28:28 bird Exp $ 2 * 2 3 * DLL entry point 3 4 * … … 52 53 case DLL_PROCESS_ATTACH: 53 54 aspi = new scsiObj(); 54 55 56 57 58 55 if(aspi == NULL) { 56 dprintf(("WNASPI32: LibMain; can't allocate aspi object!")); 57 return FALSE; 58 } 59 if(aspi->init(65535) == FALSE) 59 60 { 60 61 62 63 64 65 66 61 delete aspi; 62 aspi = NULL; 63 dprintf(("WNASPI32: LibMain; can't init aspi object!")); 64 return FALSE; 65 } 66 dprintf(("WNASPI32: LibMain; aspi object created successfully")); 67 return TRUE; 67 68 68 69 case DLL_THREAD_ATTACH: 69 70 case DLL_THREAD_DETACH: 70 71 return TRUE; 71 72 72 73 case DLL_PROCESS_DETACH: 73 74 75 76 77 78 79 74 if(aspi) { 75 aspi->close(); 76 delete aspi; 77 aspi = NULL; 78 } 79 ctordtorTerm(); 80 return TRUE; 80 81 } 81 82 return FALSE; … … 107 108 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 108 109 109 110 if(dllHandle == 0) 111 110 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); 111 if(dllHandle == 0) 112 return 0UL; 112 113 113 114 break; 114 115 case 1: 115 116 if(dllHandle) { 116 117 UnregisterLxDll(dllHandle); 117 118 } 118 119 break;
Note:
See TracChangeset
for help on using the changeset viewer.