- Timestamp:
- Nov 26, 1999, 10:10:52 PM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r1811 r1850 1 /* $Id: HandleManager.cpp,v 1.2 6 1999-11-22 20:35:49 sandervlExp $ */1 /* $Id: HandleManager.cpp,v 1.27 1999-11-26 21:10:51 phaller Exp $ */ 2 2 3 3 /* … … 55 55 #include "HMSemaphore.h" 56 56 #include "HMMMap.h" 57 #include "HMComm.h" 57 58 #include <winconst.h> 58 59 … … 120 121 HMDeviceHandler *pHMMutex; 121 122 HMDeviceHandler *pHMSemaphore; 122 HMDeviceHandler *pHMFileMapping; /* static instances of subsystems */ 123 HMDeviceHandler *pHMFileMapping; /* static instances of subsystems */ 124 HMDeviceHandler *pHMComm; /* serial communication */ 123 125 124 126 ULONG ulHandleLast; /* index of last used handle */ … … 318 320 HMGlobals.pHMMutex = new HMDeviceMutexClass("\\\\MUTEX\\"); 319 321 HMGlobals.pHMSemaphore = new HMDeviceSemaphoreClass("\\\\SEM\\"); 320 HMGlobals.pHMFileMapping = new HMDeviceMemMapClass("\\\\MEMMAP\\"); 322 HMGlobals.pHMFileMapping= new HMDeviceMemMapClass("\\\\MEMMAP\\"); 323 HMGlobals.pHMComm = new HMDeviceCommClass("\\\\COM\\"); 321 324 } 322 325 return (NO_ERROR); … … 345 348 delete HMGlobals.pHMSemaphore; 346 349 delete HMGlobals.pHMFileMapping; 350 delete HMGlobals.pHMComm; 347 351 348 352 return (NO_ERROR); -
trunk/src/kernel32/hmcomm.h
r1847 r1850 1 /* $Id: hmcomm.h,v 1. 2 1999-11-26 08:18:15 achimhaExp $ */1 /* $Id: hmcomm.h,v 1.3 1999-11-26 21:10:52 phaller Exp $ */ 2 2 3 3 /* … … 13 13 #define _HM_COMM_H_ 14 14 15 class HMDeviceComm Handler: public HMDeviceHandler15 class HMDeviceCommClass : public HMDeviceHandler 16 16 { 17 17 public: 18 HMDeviceCommClass(LPCSTR lpDeviceName) : HMDeviceHandler(lpDeviceName) {} 19 20 /* @@@PH here go the API methods 21 virtual DWORD CreateEvent (PHMHANDLEDATA pHMHandleData, 22 LPSECURITY_ATTRIBUTES lpsa, 23 BOOL fManualReset, 24 BOOL fInitialState, 25 LPCTSTR lpszEventName); 26 27 - strings are ASCII 28 - HANDLEs are translated to a PHMHANDLEDATA pointer 29 30 */ 18 31 19 32 };
Note:
See TracChangeset
for help on using the changeset viewer.