Ignore:
Timestamp:
Dec 7, 2001, 12:28:11 PM (24 years ago)
Author:
sandervl
Message:

overlappedio, com & lpt updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/hmcomm.h

    r7549 r7564  
    1 /* $Id: hmcomm.h,v 1.12 2001-12-05 14:15:59 sandervl Exp $ */
     1/* $Id: hmcomm.h,v 1.13 2001-12-07 11:28:10 sandervl Exp $ */
    22
    33/*
     
    1313#define _HM_COMM_H_
    1414
    15 #define MAGIC_COM 0x12abcd34
     15#include <handlemanager.h>
     16#include "hmdevice.h"
     17#include "overlappedio.h"
     18
     19#define MAX_COMPORTS        8
     20#define MAGIC_COM           0x12abcd34
     21
     22#define TIMEOUT_COMM        50
    1623
    1724typedef struct
     
    8491typedef struct _HMDEVCOMDATA
    8592{
    86   ULONG ulMagic;
     93  ULONG                 ulMagic;
    8794  // Win32 Device Control Block
    88   COMMCONFIG   CommCfg;
    89   COMMTIMEOUTS CommTOuts;
    90   DWORD dwInBuffer, dwOutBuffer;
    91   DWORD dwEventMask;
    92   OVERLAPPED overlapped;
    93   DWORD *lpfdwEvtMask;
    94   BOOL fCancelIo;
    95   DWORD dwLastError;
     95  COMMCONFIG            CommCfg;
     96  COMMTIMEOUTS          CommTOuts;
     97  DWORD                 dwInBuffer;
     98  DWORD                 dwOutBuffer;
     99  DWORD                 dwEventMask;
     100  OverlappedIOHandler  *iohandler;
    96101  //OS/2 Device Control Block
    97   DCBINFO dcbOS2;
     102  DCBINFO               dcbOS2;
    98103} HMDEVCOMDATA, *PHMDEVCOMDATA;
    99104
     
    115120} EXTBAUDSET, *PEXTBAUDSET;
    116121#pragma pack()
     122
     123
    117124
    118125class HMDeviceCommClass : public HMDeviceHandler
     
    209216                                   BOOL          arg4);
    210217
     218  static void CloseOverlappedIOHandlers();
     219
    211220  private:
     221
    212222  APIRET SetLine( PHMHANDLEDATA pHMHandleData,
    213223                  UCHAR ucSize,UCHAR Parity, UCHAR Stop);
     
    222232  APIRET SetBaud( PHMHANDLEDATA pHMHandleData,
    223233                  DWORD dwNewBaud);
     234
     235
     236    static OverlappedIOHandler *handler[MAX_COMPORTS];
    224237};
    225238
Note: See TracChangeset for help on using the changeset viewer.