1 #ifndef __WINDOWS_TYPES__ 2 #define __WINDOWS_TYPES__ 4 #define MAX_NUM_DEVICES 50 7 typedef unsigned long DWORD;
8 typedef unsigned long ULONG;
12 typedef unsigned short WORD;
13 typedef unsigned char BYTE;
46 LPVOID lpSecurityDescriptor;
62 #define MS_CTS_ON ((DWORD)0x0010) 63 #define MS_DSR_ON ((DWORD)0x0020) 64 #define MS_RING_ON ((DWORD)0x0040) 65 #define MS_RLSD_ON ((DWORD)0x0080) 71 #define CE_RXOVER 0x0001 // Receive Queue overflow 72 #define CE_OVERRUN 0x0002 // Receive Overrun Error 73 #define CE_RXPARITY 0x0004 // Receive Parity Error 74 #define CE_FRAME 0x0008 // Receive Framing error 75 #define CE_BREAK 0x0010 // Break Detected 76 #define CE_TXFULL 0x0100 // TX Queue is full 77 #define CE_PTO 0x0200 // LPTx Timeout 78 #define CE_IOE 0x0400 // LPTx I/O Error 79 #define CE_DNS 0x0800 // LPTx Device not selected 80 #define CE_OOP 0x1000 // LPTx Out-Of-Paper 81 #define CE_MODE 0x8000 // Requested mode unsupported 83 #ifndef INVALID_HANDLE_VALUE 84 #define INVALID_HANDLE_VALUE 0xFFFFFFFF
struct _OVERLAPPED OVERLAPPED
struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES
struct timeval SYSTEMTIME
unsigned long long int ULONGLONG
struct _SECURITY_ATTRIBUTES * LPSECURITY_ATTRIBUTES
struct _OVERLAPPED * LPOVERLAPPED