Changeset 4295 for trunk/include
- Timestamp:
- Sep 21, 2000, 7:00:10 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/winbase.h
r4059 r4295 1 /* $Id: winbase.h,v 1.1 6 2000-08-20 15:16:21 phallerExp $ */1 /* $Id: winbase.h,v 1.17 2000-09-21 17:00:10 hugh Exp $ */ 2 2 3 3 #ifndef __WINE_WINBASE_H … … 253 253 254 254 /* comm */ 255 256 /* 257 Serial provider type 258 */ 259 #define SP_SERIALCOMM ((DWORD)0x00000001) 260 /* 261 Provider SubTypes 262 */ 263 #define PST_UNSPECIFIED ((DWORD)0x00000000) 264 #define PST_RS232 ((DWORD)0x00000001) 265 #define PST_PARALLELPORT ((DWORD)0x00000002) 266 #define PST_RS422 ((DWORD)0x00000003) 267 #define PST_RS423 ((DWORD)0x00000004) 268 #define PST_RS449 ((DWORD)0x00000005) 269 #define PST_MODEM ((DWORD)0x00000006) 270 #define PST_FAX ((DWORD)0x00000021) 271 #define PST_SCANNER ((DWORD)0x00000022) 272 #define PST_NETWORK_BRIDGE ((DWORD)0x00000100) 273 #define PST_LAT ((DWORD)0x00000101) 274 #define PST_TCPIP_TELNET ((DWORD)0x00000102) 275 #define PST_X25 ((DWORD)0x00000103) 276 /* 277 Provider Caps 278 */ 279 #define PCF_DTRDSR ((DWORD)0x00000001) 280 #define PCF_RTSCTS ((DWORD)0x00000002) 281 #define PCF_RLSD ((DWORD)0x00000004) 282 #define PCF_PARITY_CHECK ((DWORD)0x00000008) 283 #define PCF_XONXOFF ((DWORD)0x00000010) 284 #define PCF_SETXCHAR ((DWORD)0x00000020) 285 #define PCF_TOTALTIMEOUTS ((DWORD)0x00000040) 286 #define PCF_INITTIMEOUTS ((DWORD)0x00000080) 287 #define PCF_SPECIALCHARS ((DWORD)0x00000100) 288 #define PCF_16BITMODE ((DWORD)0x00000200) 289 290 /* 291 Provider setable parameters 292 */ 293 #define SP_PARITY ((DWORD)0x00000001) 294 #define SP_BAUD ((DWORD)0x00000002) 295 #define SP_DATABITS ((DWORD)0x00000004) 296 #define SP_STOPBIT ((DWORD)0x00000008) 297 #define SP_HANDSHAKEING ((DWORD)0x00000010) 298 #define SP_PARITY_CHECK ((DWORD)0x00000020) 299 #define SP_RLSD ((DWORD)0x00000040) 300 /* 301 Settable baudrates in the provider 302 */ 303 #define BAUD_075 ((DWORD)0x00000001) 304 #define BAUD_110 ((DWORD)0x00000002) 305 #define BAUD_134_5 ((DWORD)0x00000004) 306 #define BAUD_150 ((DWORD)0x00000008) 307 #define BAUD_300 ((DWORD)0x00000010) 308 #define BAUD_600 ((DWORD)0x00000020) 309 #define BAUD_1200 ((DWORD)0x00000040) 310 #define BAUD_1800 ((DWORD)0x00000080) 311 #define BAUD_2400 ((DWORD)0x00000100) 312 #define BAUD_4800 ((DWORD)0x00000200) 313 #define BAUD_7200 ((DWORD)0x00000400) 314 #define BAUD_9600 ((DWORD)0x00000800) 315 #define BAUD_14400 ((DWORD)0x00001000) 316 #define BAUD_19200 ((DWORD)0x00002000) 317 #define BAUD_38400 ((DWORD)0x00004000) 318 #define BAUD_56K ((DWORD)0x00008000) 319 #define BAUD_128K ((DWORD)0x00010000) 320 #define BAUD_115200 ((DWORD)0x00020000) 321 #define BAUD_57600 ((DWORD)0x00040000) 322 #define BAUD_USER ((DWORD)0x10000000) 323 324 /* 325 Setable Databits 326 */ 327 #define DATABITS_5 ((DWORD)0x00000001) 328 #define DATABITS_6 ((DWORD)0x00000002) 329 #define DATABITS_7 ((DWORD)0x00000004) 330 #define DATABITS_8 ((DWORD)0x00000008) 331 #define DATABITS_16 ((DWORD)0x00000010) 332 #define DATABITS_16X ((DWORD)0x00000020) 333 334 /* 335 Setable Stop and Parity Bits 336 */ 337 338 #define STOPBITS_10 ((DWORD)0x00000001) 339 #define STOPBITS_15 ((DWORD)0x00000002) 340 #define STOPBITS_20 ((DWORD)0x00000004) 341 #define PARITY_NONE ((DWORD)0x00000100) 342 #define PARITY_ODD ((DWORD)0x00000200) 343 #define PARITY_EVEN ((DWORD)0x00000400) 344 #define PARITY_MARK ((DWORD)0x00000800) 345 #define PARITY_SPACE ((DWORD)0x00001000) 255 346 256 347 #define CBR_110 0xFF10 … … 1139 1230 typedef struct tagCOMSTAT 1140 1231 { 1141 DWORD status; 1232 // DWORD status; // maybe make this a union ?? 1233 unsigned fCtsHold:1; 1234 unsigned fDsrHold:1; 1235 unsigned fRlsdHold:1; 1236 unsigned fXoffHold:1; 1237 unsigned fXoffSend:1; 1238 unsigned fEof:1; 1239 unsigned fTxim:1; 1240 unsigned fReserved:25; 1142 1241 DWORD cbInQue; 1143 1242 DWORD cbOutQue; … … 1200 1299 typedef VOID (* CALLBACK PAPCFUNC)(ULONG_PTR); 1201 1300 1202 BOOL WINAPI ClearCommError( INT,LPDWORD,LPCOMSTAT);1301 BOOL WINAPI ClearCommError(HANDLE,LPDWORD,LPCOMSTAT); 1203 1302 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB); 1204 1303 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB); … … 1207 1306 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS); 1208 1307 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts) 1209 BOOL WINAPI GetCommTimeouts( INT,LPCOMMTIMEOUTS);1210 BOOL WINAPI SetCommTimeouts( INT,LPCOMMTIMEOUTS);1211 BOOL WINAPI GetCommState( INT,LPDCB);1212 BOOL WINAPI SetCommState( INT,LPDCB);1213 BOOL WINAPI TransmitCommChar( INT,CHAR);1308 BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS); 1309 BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS); 1310 BOOL WINAPI GetCommState(HANDLE,LPDCB); 1311 BOOL WINAPI SetCommState(HANDLE,LPDCB); 1312 BOOL WINAPI TransmitCommChar(HANDLE,CHAR); 1214 1313 1215 1314 … … 1564 1663 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*); 1565 1664 #define SearchPath WINELIB_NAME_AW(SearchPath) 1566 BOOL WINAPI SetCommMask( INT,DWORD);1665 BOOL WINAPI SetCommMask(HANDLE,DWORD); 1567 1666 BOOL WINAPI SetComputerNameA(LPCSTR); 1568 1667 BOOL WINAPI SetComputerNameW(LPCWSTR);
Note:
See TracChangeset
for help on using the changeset viewer.