Changeset 1850 for trunk/src


Ignore:
Timestamp:
Nov 26, 1999, 10:10:52 PM (26 years ago)
Author:
phaller
Message:

Add: serial communication support in handlemanager

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

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

    r1811 r1850  
    1 /* $Id: HandleManager.cpp,v 1.26 1999-11-22 20:35:49 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.27 1999-11-26 21:10:51 phaller Exp $ */
    22
    33/*
     
    5555#include "HMSemaphore.h"
    5656#include "HMMMap.h"
     57#include "HMComm.h"
    5758#include <winconst.h>
    5859
     
    120121  HMDeviceHandler        *pHMMutex;
    121122  HMDeviceHandler        *pHMSemaphore;
    122   HMDeviceHandler        *pHMFileMapping;        /* static instances of subsystems */
     123  HMDeviceHandler        *pHMFileMapping;  /* static instances of subsystems */
     124  HMDeviceHandler        *pHMComm;                   /* serial communication */
    123125
    124126  ULONG         ulHandleLast;                   /* index of last used handle */
     
    318320    HMGlobals.pHMMutex      = new HMDeviceMutexClass("\\\\MUTEX\\");
    319321    HMGlobals.pHMSemaphore  = new HMDeviceSemaphoreClass("\\\\SEM\\");
    320     HMGlobals.pHMFileMapping = new HMDeviceMemMapClass("\\\\MEMMAP\\");
     322    HMGlobals.pHMFileMapping= new HMDeviceMemMapClass("\\\\MEMMAP\\");
     323    HMGlobals.pHMComm       = new HMDeviceCommClass("\\\\COM\\");
    321324  }
    322325  return (NO_ERROR);
     
    345348  delete HMGlobals.pHMSemaphore;
    346349  delete HMGlobals.pHMFileMapping;
     350  delete HMGlobals.pHMComm;
    347351
    348352  return (NO_ERROR);
  • trunk/src/kernel32/hmcomm.h

    r1847 r1850  
    1 /* $Id: hmcomm.h,v 1.2 1999-11-26 08:18:15 achimha Exp $ */
     1/* $Id: hmcomm.h,v 1.3 1999-11-26 21:10:52 phaller Exp $ */
    22
    33/*
     
    1313#define _HM_COMM_H_
    1414
    15 class HMDeviceCommHandler : public HMDeviceHandler
     15class HMDeviceCommClass : public HMDeviceHandler
    1616{
    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  */
    1831
    1932};
Note: See TracChangeset for help on using the changeset viewer.