Changeset 7564 for trunk/src/kernel32/hmcomm.h
- Timestamp:
- Dec 7, 2001, 12:28:11 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmcomm.h
r7549 r7564 1 /* $Id: hmcomm.h,v 1.1 2 2001-12-05 14:15:59sandervl Exp $ */1 /* $Id: hmcomm.h,v 1.13 2001-12-07 11:28:10 sandervl Exp $ */ 2 2 3 3 /* … … 13 13 #define _HM_COMM_H_ 14 14 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 16 23 17 24 typedef struct … … 84 91 typedef struct _HMDEVCOMDATA 85 92 { 86 ULONG ulMagic;93 ULONG ulMagic; 87 94 // 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; 96 101 //OS/2 Device Control Block 97 DCBINFO dcbOS2;102 DCBINFO dcbOS2; 98 103 } HMDEVCOMDATA, *PHMDEVCOMDATA; 99 104 … … 115 120 } EXTBAUDSET, *PEXTBAUDSET; 116 121 #pragma pack() 122 123 117 124 118 125 class HMDeviceCommClass : public HMDeviceHandler … … 209 216 BOOL arg4); 210 217 218 static void CloseOverlappedIOHandlers(); 219 211 220 private: 221 212 222 APIRET SetLine( PHMHANDLEDATA pHMHandleData, 213 223 UCHAR ucSize,UCHAR Parity, UCHAR Stop); … … 222 232 APIRET SetBaud( PHMHANDLEDATA pHMHandleData, 223 233 DWORD dwNewBaud); 234 235 236 static OverlappedIOHandler *handler[MAX_COMPORTS]; 224 237 }; 225 238
Note:
See TracChangeset
for help on using the changeset viewer.