1 #ifndef __WINDOWS_TYPES__ 2 #define __WINDOWS_TYPES__ 6 typedef unsigned int DWORD;
7 typedef unsigned int ULONG;
8 typedef unsigned short USHORT;
9 typedef unsigned short SHORT;
10 typedef unsigned char UCHAR;
11 typedef unsigned short WORD;
12 typedef unsigned short WCHAR;
13 typedef unsigned char BYTE;
15 typedef unsigned int BOOL;
16 typedef unsigned char BOOLEAN;
17 typedef unsigned char CHAR;
19 typedef UCHAR *PUCHAR;
20 typedef const char *LPCSTR;
24 typedef unsigned int LONG;
26 typedef unsigned int UINT;
29 typedef const char *LPCTSTR;
30 typedef DWORD *LPDWORD;
32 typedef ULONG *PULONG;
36 typedef USHORT *PUSHORT;
37 typedef unsigned long long int ULONGLONG;
54 LPVOID lpSecurityDescriptor;
64 pthread_cond_t eCondVar;
65 pthread_mutex_t eMutex;
69 typedef struct timeval SYSTEMTIME;
70 typedef struct timeval FILETIME;
73 #define WAIT_ABANDONED 0x00000080L 74 #define WAIT_OBJECT_0 0x00000000L 75 #define WAIT_TIMEOUT 0x00000102L 76 #define WAIT_FAILED 0xFFFFFFFF 78 #define INFINITE 0xFFFFFFFF // Infinite timeout 92 #define MS_CTS_ON ((DWORD)0x0010) 93 #define MS_DSR_ON ((DWORD)0x0020) 94 #define MS_RING_ON ((DWORD)0x0040) 95 #define MS_RLSD_ON ((DWORD)0x0080) 100 #define CE_RXOVER 0x0001 // Receive Queue overflow 101 #define CE_OVERRUN 0x0002 // Receive Overrun Error 102 #define CE_RXPARITY 0x0004 // Receive Parity Error 103 #define CE_FRAME 0x0008 // Receive Framing error 104 #define CE_BREAK 0x0010 // Break Detected 105 #define CE_TXFULL 0x0100 // TX Queue is full 106 #define CE_PTO 0x0200 // LPTx Timeout 107 #define CE_IOE 0x0400 // LPTx I/O Error 108 #define CE_DNS 0x0800 // LPTx Device not selected 109 #define CE_OOP 0x1000 // LPTx Out-Of-Paper 110 #define CE_MODE 0x8000 // Requested mode unsupported 115 #define EV_RXCHAR 0x0001 // Any Character received 116 #define EV_RXFLAG 0x0002 // Received certain character 117 #define EV_TXEMPTY 0x0004 // Transmit Queue Empty 118 #define EV_CTS 0x0008 // CTS changed state 119 #define EV_DSR 0x0010 // DSR changed state 120 #define EV_RLSD 0x0020 // RLSD changed state 121 #define EV_BREAK 0x0040 // BREAK received 122 #define EV_ERR 0x0080 // Line status error occurred 123 #define EV_RING 0x0100 // Ring signal detected 124 #define EV_PERR 0x0200 // Printer error occured 125 #define EV_RX80FULL 0x0400 // Receive buffer is 80 percent full 126 #define EV_EVENT1 0x0800 // Provider specific event 1 127 #define EV_EVENT2 0x1000 // Provider specific event 2 132 #define SETXOFF 1 // Simulate XOFF received 133 #define SETXON 2 // Simulate XON received 134 #define SETRTS 3 // Set RTS high 135 #define CLRRTS 4 // Set RTS low 136 #define SETDTR 5 // Set DTR high 137 #define CLRDTR 6 // Set DTR low 138 #define RESETDEV 7 // Reset device if possible 139 #define SETBREAK 8 // Set the device break line. 140 #define CLRBREAK 9 // Clear the device break line. 145 #define PURGE_TXABORT 0x0001 // Kill the pending/current writes to the comm port. 146 #define PURGE_RXABORT 0x0002 // Kill the pending/current reads to the comm port. 147 #define PURGE_TXCLEAR 0x0004 // Kill the transmit queue if there. 148 #define PURGE_RXCLEAR 0x0008 // Kill the typeahead buffer if there. 150 #ifndef INVALID_HANDLE_VALUE 151 #define INVALID_HANDLE_VALUE 0xFFFFFFFF Definition: WinTypes.h:62
Definition: WinTypes.h:39
Definition: WinTypes.h:52