Changeset 4230 for trunk/src/kernel32/initsystem.cpp
- Timestamp:
- Sep 10, 2000, 11:54:07 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initsystem.cpp
r4134 r4230 1 /* $Id: initsystem.cpp,v 1.1 4 2000-08-31 12:47:51sandervl Exp $ */1 /* $Id: initsystem.cpp,v 1.15 2000-09-10 21:54:06 sandervl Exp $ */ 2 2 /* 3 3 * Odin system initialization (registry, directories & environment) … … 99 99 DWORD val; 100 100 char digbuf[16]; 101 char shellpath[260]; 101 102 102 103 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"SYSTEM\\CurrentControlSet\\Control\\Windows",&hkey)!=ERROR_SUCCESS) { … … 116 117 RegSetValueExA(hkey,"ShutdownTime",0,REG_DWORD, (LPBYTE)ShutdownTime, sizeof(ShutdownTime)); 117 118 RegCloseKey(hkey); 119 120 //CurrentVersion\RunOnce 121 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce",&hkey)!=ERROR_SUCCESS) { 122 dprintf(("InitRegistry: Unable to register system information (2)")); 123 return FALSE; 124 } 125 RegCloseKey(hkey); 126 127 //System\CurrentControlSet\Control\Session Manager 128 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"System\\CurrentControlSet\\Control\\Session Manager",&hkey)!=ERROR_SUCCESS) { 129 dprintf(("InitRegistry: Unable to register system information (2)")); 130 return FALSE; 131 } 132 RegCloseKey(hkey); 133 134 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\iexplore.exe",&hkey)!=ERROR_SUCCESS) { 135 dprintf(("InitRegistry: Unable to register system information (2)")); 136 return FALSE; 137 } 138 strcpy(shellpath, InternalGetWindowsDirectoryA()); 139 strcat(shellpath, "\\IEXPLORE.EXE"); 140 RegSetValueExA(hkey, "", 0, REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 141 RegCloseKey(hkey); 142 118 143 119 144 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion",&hkey)!=ERROR_SUCCESS) { … … 151 176 //"NetHood"="C:\WINDOWS\NetHood" 152 177 //"Personal"="C:\My Documents" 153 154 char shellpath[260];155 178 156 179 if(RegCreateKeyA(HKEY_CURRENT_USER,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders",&hkey)!=ERROR_SUCCESS) {
Note:
See TracChangeset
for help on using the changeset viewer.