Changeset 7476 for trunk/src/kernel32
- Timestamp:
- Nov 29, 2001, 1:20:48 AM (24 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r7474 r7476 1 /* $Id: HandleManager.cpp,v 1. 79 2001-11-28 23:33:34phaller Exp $ */1 /* $Id: HandleManager.cpp,v 1.80 2001-11-29 00:20:45 phaller Exp $ */ 2 2 3 3 /* … … 60 60 #include "HMComm.h" 61 61 #include "HMParPort.h" 62 #include "HMNul.h" 62 63 #include "HMToken.h" 63 64 #include "HMThread.h" … … 148 149 HMDeviceHandler *pHMMailslot; 149 150 HMDeviceHandler *pHMParPort; /* parallel communication */ 151 HMDeviceHandler *pHMNul; /* nul device */ 150 152 151 153 ULONG ulHandleLast; /* index of last used handle */ … … 488 490 HMGlobals.pHMMailslot = new HMMailslotClass("\\MAILSLOT\\"); 489 491 HMGlobals.pHMParPort = new HMDeviceParPortClass("\\\\LPT\\"); 492 HMGlobals.pHMNul = new HMDeviceNulClass("\\\\NUL\\"); 490 493 } 491 494 return (NO_ERROR); … … 537 540 if(HMGlobals.pHMParPort) 538 541 delete HMGlobals.pHMParPort; 542 if(HMGlobals.pHMNul) 543 delete HMGlobals.pHMNul; 539 544 540 545 return (NO_ERROR); -
trunk/src/kernel32/conout.cpp
r7457 r7476 1 /* $Id: conout.cpp,v 1.1 1 2001-11-26 14:53:59 sandervlExp $ */1 /* $Id: conout.cpp,v 1.12 2001-11-29 00:20:46 phaller Exp $ */ 2 2 3 3 /* … … 100 100 PHMHANDLEDATA pHMHandleDataTemplate) 101 101 { 102 APIRET rc;103 102 BOOL fResult; 104 103 HANDLE hConsole; -
trunk/src/kernel32/console.cpp
r6921 r7476 1 /* $Id: console.cpp,v 1.2 8 2001-10-01 01:47:01 birdExp $ */1 /* $Id: console.cpp,v 1.29 2001-11-29 00:20:46 phaller Exp $ */ 2 2 3 3 /* … … 74 74 #include "conwin.h" // Windows Header for console only 75 75 #include "HandleManager.h" 76 #include "handlenames.h" 76 77 #include "HMDevice.h" 77 78 … … 415 416 dprintf(("KERNEL32:ConsoleDevicesRegister: registering CONOUT$ failed with %u.\n", 416 417 rc)); 417 418 419 // add standard symbolic links 420 HandleNamesAddSymbolicLink("CON", "CONOUT$"); 421 HandleNamesAddSymbolicLink("CON:", "CONOUT$"); 422 HandleNamesAddSymbolicLink("\\\\.\\CON", "CONOUT$"); 423 418 424 if(flVioConsole == TRUE) 419 425 { -
trunk/src/kernel32/dbglocal.cpp
r7328 r7476 1 /* $Id: dbglocal.cpp,v 1.1 7 2001-11-13 13:19:15 sandervlExp $ */1 /* $Id: dbglocal.cpp,v 1.18 2001-11-29 00:20:47 phaller Exp $ */ 2 2 3 3 /* … … 125 125 "mailslot", 126 126 "hmmailslot", 127 "hmparport" 127 "hmparport", 128 "hmnul" 128 129 }; 129 130 //****************************************************************************** -
trunk/src/kernel32/dbglocal.h
r7298 r7476 123 123 #define DBG_hmmailslot 103 124 124 #define DBG_hmparport 104 125 #define DBG_MAXFILES 105 125 #define DBG_hmnul 105 126 #define DBG_MAXFILES 106 126 127 127 128 extern USHORT DbgEnabledKERNEL32[DBG_MAXFILES]; -
trunk/src/kernel32/hmcomm.cpp
r7475 r7476 1 /* $Id: hmcomm.cpp,v 1. 19 2001-11-28 23:52:50phaller Exp $ */1 /* $Id: hmcomm.cpp,v 1.20 2001-11-29 00:20:47 phaller Exp $ */ 2 2 3 3 /* … … 97 97 // @@@PH what's the long device name: SerialPortx ? 98 98 // HandleNamesAddSymbolicLink("\\Device\\ParallelPort3", "COM3"); 99 // Note: \\.\COMx: is invalid (NT4SP6) 99 100 100 101 PSZ pszCOM = strdup("\\\\.\\COMx"); 101 PSZ pszCOM2 = strdup("\\\\.\\COMx:");102 102 for (char ch = '1'; ch <= '9'; ch++) 103 103 { 104 104 pszCOM[7] = ch; 105 pszCOM2[7] = ch;106 105 HandleNamesAddSymbolicLink(pszCOM, pszCOM+4); 107 HandleNamesAddSymbolicLink(pszCOM2, pszCOM+4);108 106 } 109 107 free(pszCOM); 110 free(pszCOM2); 108 109 // add "AUX" device 110 HandleNamesAddSymbolicLink("AUX", "COM1"); 111 HandleNamesAddSymbolicLink("AUX:", "COM1"); 112 HandleNamesAddSymbolicLink("\\\\.\\AUX", "COM1"); 111 113 } 112 114 } -
trunk/src/kernel32/hmparport.cpp
r7475 r7476 1 /* $Id: hmparport.cpp,v 1.1 0 2001-11-28 23:52:50phaller Exp $ */1 /* $Id: hmparport.cpp,v 1.11 2001-11-29 00:20:48 phaller Exp $ */ 2 2 3 3 /* … … 153 153 // add symbolic links to the "real name" of the device 154 154 { 155 // Note: \\.\LPTx: is invalid (NT4SP6) 155 156 PSZ pszLPT = strdup("\\\\.\\LPTx"); 156 PSZ pszLPT2 = strdup("\\\\.\\LPTx:"); 157 PSZ pszLPT3 = strdup("\\Device\\ParallelPort1"); 157 PSZ pszLPT2 = strdup("\\Device\\ParallelPort1"); 158 158 for (char ch = '1'; ch <= '3'; ch++) 159 159 { 160 160 pszLPT[7] = ch; 161 pszLPT2[7] = ch; 162 pszLPT3[20] = ch; 161 pszLPT2[20] = ch; 163 162 HandleNamesAddSymbolicLink(pszLPT, pszLPT+4); 164 163 HandleNamesAddSymbolicLink(pszLPT2, pszLPT+4); 165 HandleNamesAddSymbolicLink(pszLPT3, pszLPT+4);166 164 } 167 165 free(pszLPT); 168 166 free(pszLPT2); 169 free(pszLPT3); 167 168 // add "PRN" device 169 HandleNamesAddSymbolicLink("PRN", "LPT1"); 170 HandleNamesAddSymbolicLink("PRN:", "LPT1"); 171 HandleNamesAddSymbolicLink("\\\\.\\PRN", "LPT1"); 170 172 } 171 173 } -
trunk/src/kernel32/kernel32.mak
r7441 r7476 1 # $Id: kernel32.mak,v 1.1 7 2001-11-23 18:07:37phaller Exp $1 # $Id: kernel32.mak,v 1.18 2001-11-29 00:20:48 phaller Exp $ 2 2 3 3 # … … 76 76 $(OBJDIR)\hmcomm.obj \ 77 77 $(OBJDIR)\hmparport.obj \ 78 $(OBJDIR)\hmnul.obj \ 78 79 $(OBJDIR)\hmsemaphore.obj \ 79 80 $(OBJDIR)\hmstd.obj \
Note:
See TracChangeset
for help on using the changeset viewer.