- Timestamp:
- Sep 13, 2000, 11:11:00 PM (25 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r4197 r4256 1 /* $Id: HandleManager.cpp,v 1.4 8 2000-09-05 20:35:38sandervl Exp $ */1 /* $Id: HandleManager.cpp,v 1.49 2000-09-13 21:10:56 sandervl Exp $ */ 2 2 3 3 /* … … 50 50 #include "HandleManager.H" 51 51 #include "HMDevice.h" 52 #include "HMDisk.h" 52 53 #include "HMOpen32.h" 53 54 #include "HMEvent.h" … … 128 129 HMDeviceHandler *pHMEvent; /* static instances of subsystems */ 129 130 HMDeviceHandler *pHMFile; 131 HMDeviceHandler *pHMDisk; 130 132 HMDeviceHandler *pHMMutex; 131 133 HMDeviceHandler *pHMSemaphore; … … 172 174 PHMDEVICE pHMDevice; /* iterator over the device table */ 173 175 174 if (pszDeviceName != NULL) 176 if (pszDeviceName != NULL) { 175 177 for (pHMDevice = TabWin32Devices; /* loop over all devices in the table */ 176 178 pHMDevice != NULL; … … 181 183 return (pHMDevice->pDeviceHandler); /* OK, we've found our device */ 182 184 } 185 } 186 int namelength = strlen(pszDeviceName); 187 188 //SvL: \\.\x: -> drive x (i.e. \\.\C:) 189 // \\.\PHYSICALDRIVEn -> drive n (n>=0) 190 if((strncmp(pszDeviceName, "\\\\.\\", 4) == 0) && 191 namelength == 6 && pszDeviceName[5] == ':') 192 { 193 return HMGlobals.pHMDisk; 194 } 195 if((strncmp(pszDeviceName, "\\\\.\\PHYSICALDRIVE", 17) == 0) && namelength == 18) { 196 return HMGlobals.pHMDisk; 197 } 183 198 184 199 return (HMGlobals.pHMOpen32); /* haven't found anything, return default */ … … 359 374 HMGlobals.pHMEvent = new HMDeviceEventClass("\\\\EVENT\\"); 360 375 HMGlobals.pHMFile = new HMDeviceFileClass("\\\\FILE\\"); 376 HMGlobals.pHMDisk = new HMDeviceDiskClass("\\\\DISK\\"); 361 377 HMGlobals.pHMMutex = new HMDeviceMutexClass("\\\\MUTEX\\"); 362 378 HMGlobals.pHMSemaphore = new HMDeviceSemaphoreClass("\\\\SEM\\"); … … 387 403 /* @@@PH we could deallocate the device list here */ 388 404 389 delete HMGlobals.pHMOpen32; 390 delete HMGlobals.pHMEvent; 391 delete HMGlobals.pHMFile; 392 delete HMGlobals.pHMMutex; 393 delete HMGlobals.pHMSemaphore; 394 delete HMGlobals.pHMFileMapping; 395 delete HMGlobals.pHMComm; 405 if(HMGlobals.pHMOpen32) 406 delete HMGlobals.pHMOpen32; 407 if(HMGlobals.pHMEvent) 408 delete HMGlobals.pHMEvent; 409 if(HMGlobals.pHMFile) 410 delete HMGlobals.pHMFile; 411 if(HMGlobals.pHMMutex) 412 delete HMGlobals.pHMMutex; 413 if(HMGlobals.pHMSemaphore) 414 delete HMGlobals.pHMSemaphore; 415 if(HMGlobals.pHMFileMapping) 416 delete HMGlobals.pHMFileMapping; 417 if(HMGlobals.pHMComm) 418 delete HMGlobals.pHMComm; 419 if(HMGlobals.pHMToken) 420 delete HMGlobals.pHMToken; 421 if(HMGlobals.pHMThread) 422 delete HMGlobals.pHMThread; 423 if(HMGlobals.pHMNamedPipe) 424 delete HMGlobals.pHMNamedPipe; 425 if(HMGlobals.pHMDisk) 426 delete HMGlobals.pHMDisk; 396 427 397 428 return (NO_ERROR); -
trunk/src/kernel32/dbglocal.cpp
r3819 r4256 1 /* $Id: dbglocal.cpp,v 1. 9 2000-07-12 18:21:41sandervl Exp $ */1 /* $Id: dbglocal.cpp,v 1.10 2000-09-13 21:10:58 sandervl Exp $ */ 2 2 3 3 /* … … 120 120 "exceptstackdump", 121 121 "hmfile", 122 "hmnpipe" 122 "hmnpipe", 123 "hmdisk" 123 124 }; 124 125 //****************************************************************************** -
trunk/src/kernel32/dbglocal.h
r3819 r4256 1 /* $Id: dbglocal.h,v 1. 9 2000-07-12 18:21:42sandervl Exp $ */1 /* $Id: dbglocal.h,v 1.10 2000-09-13 21:10:58 sandervl Exp $ */ 2 2 3 3 /* … … 120 120 #define DBG_hmfile 98 121 121 #define DBG_hmnpipe 99 122 #define DBG_MAXFILES 100 122 #define DBG_hmdisk 100 123 #define DBG_MAXFILES 101 123 124 124 125 extern USHORT DbgEnabled[DBG_MAXFILES]; -
trunk/src/kernel32/hmfile.cpp
r4230 r4256 1 /* $Id: hmfile.cpp,v 1.2 0 2000-09-10 21:54:06sandervl Exp $ */1 /* $Id: hmfile.cpp,v 1.21 2000-09-13 21:10:59 sandervl Exp $ */ 2 2 3 3 /* … … 49 49 * Variables : 50 50 * Result : 51 * Remark : 51 * Remark : TODO: \\.\PHYSICALDRIVEx opens physical drive x 52 52 * Status : NO_ERROR - API succeeded 53 53 * other - what is to be set in SetLastError -
trunk/src/kernel32/initsystem.cpp
r4230 r4256 1 /* $Id: initsystem.cpp,v 1.1 5 2000-09-10 21:54:06sandervl Exp $ */1 /* $Id: initsystem.cpp,v 1.16 2000-09-13 21:10:59 sandervl Exp $ */ 2 2 /* 3 3 * Odin system initialization (registry, directories & environment) … … 118 118 RegCloseKey(hkey); 119 119 120 // CurrentVersion\RunOnce120 //Software\Microsoft\Windows\CurrentVersion\RunOnce 121 121 if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce",&hkey)!=ERROR_SUCCESS) { 122 122 dprintf(("InitRegistry: Unable to register system information (2)")); -
trunk/src/kernel32/makefile
r4224 r4256 1 # $Id: makefile,v 1.10 0 2000-09-08 18:07:50sandervl Exp $1 # $Id: makefile,v 1.101 2000-09-13 21:10:59 sandervl Exp $ 2 2 3 3 # … … 127 127 $(OBJDIR)\hmthread.obj \ 128 128 $(OBJDIR)\hmnpipe.obj \ 129 $(OBJDIR)\hmdisk.obj \ 129 130 !ifdef DEBUG 130 131 $(OBJDIR)\exceptstackdump.obj \ -
trunk/src/kernel32/oslibdos.cpp
r4235 r4256 1 /* $Id: oslibdos.cpp,v 1.4 1 2000-09-12 04:27:44 birdExp $ */1 /* $Id: oslibdos.cpp,v 1.42 2000-09-13 21:11:00 sandervl Exp $ */ 2 2 /* 3 3 * Wrappers for OS/2 Dos* API … … 798 798 #endif 799 799 800 if(strlen(lpszFile) == 2 && lpszFile[1] == ':') { 801 //app tries to open physical disk 802 openMode |= OPEN_FLAGS_DASD; 803 } 800 804 int retry = 0; 801 805 while(retry < 2) -
trunk/src/kernel32/wprocess.cpp
r4250 r4256 1 /* $Id: wprocess.cpp,v 1.9 3 2000-09-12 22:47:58 birdExp $ */1 /* $Id: wprocess.cpp,v 1.94 2000-09-13 21:11:00 sandervl Exp $ */ 2 2 3 3 /* … … 1119 1119 while (*psz2 == ' ') /* skip blanks after argv[1]. */ 1120 1120 psz2++; 1121 pszArg2 = psz2; //SvL: bugfix -> fixes heap corruption 1121 1122 } 1122 1123 else
Note:
See TracChangeset
for help on using the changeset viewer.