Changeset 6401 for trunk/src/custombuild
- Timestamp:
- Jul 29, 2001, 9:02:35 PM (24 years ago)
- Location:
- trunk/src/custombuild
- Files:
-
- 3 edited
-
guid.c (modified) (2 diffs)
-
initterm.cpp (modified) (5 diffs)
-
xxodin32.def (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/custombuild/guid.c
r6374 r6401 1 /* $Id: guid.c,v 1. 1 2001-07-20 15:41:43sandervl Exp $ */1 /* $Id: guid.c,v 1.2 2001-07-29 19:02:35 sandervl Exp $ */ 2 2 #define ICOM_CINTERFACE 1 3 3 #include <odin.h> … … 51 51 return towupper(*str1) - towupper(*str2); 52 52 } 53 54 /********************************************************************* 55 * wcstombs (NTDLL.@) 56 */ 57 INT __cdecl NTDLL_wcstombs( LPSTR dst, LPCWSTR src, INT n ) 58 { 59 INT ret; 60 if (n <= 0) return 0; 61 ret = WideCharToMultiByte( CP_ACP, 0, src, -1, dst, dst ? n : 0, NULL, NULL ); 62 if (!ret) return n; /* overflow */ 63 return ret - 1; /* do not count terminating NULL */ 64 } 65 66 /********************************************************************* 67 * _wtol (NTDLL.@) 68 * Like atol, but for wide character strings. 69 */ 70 LONG __cdecl _wtol(LPWSTR string) 71 { 72 char buffer[30]; 73 NTDLL_wcstombs( buffer, string, sizeof(buffer) ); 74 return atol( buffer ); 75 } 76 77 /********************************************************************* 78 * _wtoi (NTDLL.@) 79 */ 80 INT __cdecl _wtoi(LPWSTR string) 81 { 82 return _wtol(string); 83 } -
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); -
trunk/src/custombuild/xxodin32.def
r6374 r6401 1 ; $Id: xxodin32.def,v 1. 1 2001-07-20 15:41:43sandervl Exp $1 ; $Id: xxodin32.def,v 1.2 2001-07-29 19:02:35 sandervl Exp $ 2 2 3 3 LIBRARY XXODIN32 INITINSTANCE … … 30 30 WinXxCreateHeap = PMMERGE.5425 31 31 WinXxDestroyHeap = PMMERGE.5426 32 __SwapMouseButton = PMMERGE.10019 32 33 LookupAtom = PMMERGE.10020 33 34 … … 2237 2238 DSA_EnumCallback = _DSA_EnumCallback@12 @7387 2238 2239 DSA_DestroyCallback = _DSA_DestroyCallback@12 @7388 2239 _COMCTL32_389@8 @7389 NONAME2240 _COMCTL32_390@16 @7390 NONAME2241 2242 _comctl32_410@16 @7410 NONAME2243 _comctl32_411@12 @7411 NONAME2244 _comctl32_412@12 @7412 NONAME2245 _comctl32_413@16 @7413 NONAME2246 _COMCTL32_415@20 @7415 NONAME2247 2248 ; WI MM2240 ;; _COMCTL32_389@8 @7389 NONAME 2241 ;; _COMCTL32_390@16 @7390 NONAME 2242 2243 ;; _comctl32_410@16 @7410 NONAME 2244 ;; _comctl32_411@12 @7411 NONAME 2245 ;; _comctl32_412@12 @7412 NONAME 2246 ;; _comctl32_413@16 @7413 NONAME 2247 ;; _COMCTL32_415@20 @7415 NONAME 2248 2249 ; WINMM 2249 2250 PlaySoundA = _PlaySoundA@12 @8002 2250 2251 CloseDriver = _CloseDriver@12 @8005
Note:
See TracChangeset
for help on using the changeset viewer.
