Changeset 3005 for trunk/src/kernel32/initsystem.cpp
- Timestamp:
- Mar 4, 2000, 8:52:37 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initsystem.cpp
r2984 r3005 1 /* $Id: initsystem.cpp,v 1. 6 2000-03-03 11:15:57sandervl Exp $ */1 /* $Id: initsystem.cpp,v 1.7 2000-03-04 19:52:36 sandervl Exp $ */ 2 2 /* 3 3 * Odin system initialization (registry & directories) … … 113 113 // if(RegOpenKeyA(HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", &hkey) != ERROR_SUCCESS) 114 114 // { 115 strcpy(shellpath, InternalGet SystemDirectoryA());116 strcat(shellpath, "\\ WIN\\Favorites");115 strcpy(shellpath, InternalGetWindowsDirectoryA()); 116 strcat(shellpath, "\\Favorites"); 117 117 CreateDirectoryA(shellpath, NULL); 118 118 RegSetValueExA(hkey,"Favorites",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 119 strcpy(shellpath, InternalGet SystemDirectoryA());120 strcat(shellpath, "\\ WIN\\Programs\\Startup");119 strcpy(shellpath, InternalGetWindowsDirectoryA()); 120 strcat(shellpath, "\\Programs\\Startup"); 121 121 CreateDirectoryA(shellpath, NULL); 122 122 RegSetValueExA(hkey,"Startup",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 123 strcpy(shellpath, InternalGet SystemDirectoryA());124 strcat(shellpath, "\\ WIN\\Desktop");123 strcpy(shellpath, InternalGetWindowsDirectoryA()); 124 strcat(shellpath, "\\Desktop"); 125 125 CreateDirectoryA(shellpath, NULL); 126 126 RegSetValueExA(hkey,"Desktop",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 127 strcpy(shellpath, InternalGet SystemDirectoryA());128 strcat(shellpath, "\\ WIN\\Start Menu\\Programs");127 strcpy(shellpath, InternalGetWindowsDirectoryA()); 128 strcat(shellpath, "\\Start Menu\\Programs"); 129 129 CreateDirectoryA(shellpath, NULL); 130 130 RegSetValueExA(hkey,"Programs",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 131 strcpy(shellpath, InternalGet SystemDirectoryA());132 strcat(shellpath, "\\ WIN\\Fonts");131 strcpy(shellpath, InternalGetWindowsDirectoryA()); 132 strcat(shellpath, "\\Fonts"); 133 133 CreateDirectoryA(shellpath, NULL); 134 134 RegSetValueExA(hkey,"Fonts",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 135 strcpy(shellpath, InternalGet SystemDirectoryA());136 strcat(shellpath, "\\ WIN\\SendTo");135 strcpy(shellpath, InternalGetWindowsDirectoryA()); 136 strcat(shellpath, "\\SendTo"); 137 137 CreateDirectoryA(shellpath, NULL); 138 138 RegSetValueExA(hkey,"SendTo",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 139 strcpy(shellpath, InternalGet SystemDirectoryA());140 strcat(shellpath, "\\ WIN\\Start Menu");139 strcpy(shellpath, InternalGetWindowsDirectoryA()); 140 strcat(shellpath, "\\Start Menu"); 141 141 CreateDirectoryA(shellpath, NULL); 142 142 RegSetValueExA(hkey,"Start Menu",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 143 strcpy(shellpath, InternalGet SystemDirectoryA());144 strcat(shellpath, "\\ WIN\\ShellNew");143 strcpy(shellpath, InternalGetWindowsDirectoryA()); 144 strcat(shellpath, "\\ShellNew"); 145 145 CreateDirectoryA(shellpath, NULL); 146 146 RegSetValueExA(hkey,"Templates",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 147 strcpy(shellpath, InternalGet SystemDirectoryA());148 strcat(shellpath, "\\ WIN\\Recent");147 strcpy(shellpath, InternalGetWindowsDirectoryA()); 148 strcat(shellpath, "\\Recent"); 149 149 CreateDirectoryA(shellpath, NULL); 150 150 RegSetValueExA(hkey,"Recent",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 151 strcpy(shellpath, InternalGet SystemDirectoryA());152 strcat(shellpath, "\\ WIN\\NetHood");151 strcpy(shellpath, InternalGetWindowsDirectoryA()); 152 strcat(shellpath, "\\NetHood"); 153 153 CreateDirectoryA(shellpath, NULL); 154 154 RegSetValueExA(hkey,"NetHood",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1); 155 strcpy(shellpath, InternalGet SystemDirectoryA());156 strcat(shellpath, "\\ WIN\\My Documents");155 strcpy(shellpath, InternalGetWindowsDirectoryA()); 156 strcat(shellpath, "\\My Documents"); 157 157 CreateDirectoryA(shellpath, NULL); 158 158 RegSetValueExA(hkey,"Personal",0,REG_SZ, (LPBYTE)shellpath, strlen(shellpath)+1);
Note:
See TracChangeset
for help on using the changeset viewer.