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

Add: serial communication support in handlemanager

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.