Changeset 6401 for trunk/src/custombuild/initterm.cpp
- Timestamp:
- Jul 29, 2001, 9:02:35 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/custombuild/initterm.cpp
r6374 r6401 31 31 #include <string.h> 32 32 #include <odin.h> 33 #include <win32api.h> 33 34 #include <win32type.h> 35 #include <odinapi.h> 34 36 #include <winconst.h> 35 37 #include <odinlx.h> … … 39 41 40 42 BOOL fVersionWarp3 = FALSE; 43 static HKEY hKeyClassesRoot = 0; 44 static HKEY hKeyCurrentUser = 0; 45 static HKEY hKeyLocalMachine = 0; 46 static HKEY hKeyUsers = 0; 41 47 42 48 #ifdef __IBMCPP__ … … 51 57 static void APIENTRY cleanup(ULONG reason); 52 58 } 59 53 60 /****************************************************************************/ 54 61 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 100 107 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 101 108 109 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_ClassesRoot",&hKeyClassesRoot)!=ERROR_SUCCESS_W) { 110 return 0; 111 } 112 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_CurrentUser",&hKeyCurrentUser)!=ERROR_SUCCESS_W) { 113 return 0; 114 } 115 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_LocalMachine",&hKeyLocalMachine)!=ERROR_SUCCESS_W) { 116 return 0; 117 } 118 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_Users",&hKeyUsers)!=ERROR_SUCCESS_W) { 119 return 0; 120 } 121 SetRegistryRootKey(HKEY_CLASSES_ROOT, hKeyClassesRoot); 122 SetRegistryRootKey(HKEY_CURRENT_USER, hKeyCurrentUser); 123 SetRegistryRootKey(HKEY_LOCAL_MACHINE, hKeyLocalMachine); 124 SetRegistryRootKey(HKEY_USERS, hKeyUsers); 125 126 SetCustomBuildName("KERNEL32.DLL"); 102 127 rc = inittermKernel32(hModule, ulFlag); 103 128 if(rc == 0) 104 return 0UL; 105 129 return 0UL; 130 131 SetCustomBuildName("USER32.DLL"); 106 132 rc = inittermUser32(hModule, ulFlag); 107 133 if(rc == 0) 108 134 return 0UL; 109 135 136 SetCustomBuildName("WSOCK32.DLL"); 137 rc = inittermWsock32(hModule, ulFlag); 138 if(rc == 0) 139 return 0UL; 140 141 SetCustomBuildName("WINMM.DLL"); 110 142 rc = inittermWinmm(hModule, ulFlag); 111 143 if(rc == 0) 112 144 return 0UL; 113 145 146 SetCustomBuildName("RPCRT4.DLL"); 114 147 rc = inittermRpcrt4(hModule, ulFlag); 115 148 if(rc == 0) 116 149 return 0UL; 117 150 151 SetCustomBuildName("OLE32.DLL"); 118 152 rc = inittermOle32(hModule, ulFlag); 119 153 if(rc == 0) 120 154 return 0UL; 121 155 156 SetCustomBuildName("COMCTL32.DLL"); 122 157 rc = inittermComctl32(hModule, ulFlag); 123 158 if(rc == 0) 124 159 return 0UL; 125 160 161 SetCustomBuildName("SHELL32.DLL"); 126 162 rc = inittermShell32(hModule, ulFlag); 127 163 if(rc == 0) 128 164 return 0UL; 129 165 166 SetCustomBuildName("COMDLG32.DLL"); 130 167 rc = inittermComdlg32(hModule, ulFlag); 131 168 if(rc == 0) 132 169 return 0UL; 133 170 171 SetCustomBuildName(NULL); 134 172 break; 135 173 case 1 : … … 140 178 inittermRpcrt4(hModule, ulFlag); 141 179 inittermWinmm(hModule, ulFlag); 180 inittermWsock32(hModule, ulFlag); 142 181 inittermUser32(hModule, ulFlag); 143 182 inittermKernel32(hModule, ulFlag);
Note:
See TracChangeset
for help on using the changeset viewer.