Ignore:
Timestamp:
Sep 10, 2000, 11:54:07 PM (25 years ago)
Author:
sandervl
Message:

memory map fixes + extra reg keys for init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/initsystem.cpp

    r4134 r4230  
    1 /* $Id: initsystem.cpp,v 1.14 2000-08-31 12:47:51 sandervl Exp $ */
     1/* $Id: initsystem.cpp,v 1.15 2000-09-10 21:54:06 sandervl Exp $ */
    22/*
    33 * Odin system initialization (registry, directories & environment)
     
    9999 DWORD val;
    100100 char  digbuf[16];
     101 char  shellpath[260];
    101102
    102103   if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"SYSTEM\\CurrentControlSet\\Control\\Windows",&hkey)!=ERROR_SUCCESS) {
     
    116117   RegSetValueExA(hkey,"ShutdownTime",0,REG_DWORD, (LPBYTE)ShutdownTime, sizeof(ShutdownTime));
    117118   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
    118143
    119144   if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion",&hkey)!=ERROR_SUCCESS) {
     
    151176   //"NetHood"="C:\WINDOWS\NetHood"
    152177   //"Personal"="C:\My Documents"
    153 
    154    char shellpath[260];
    155178
    156179   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.