Use GetCommState16 to save state in OpenComm16.
[wine.git] / include / nspapi.h
blobe83447fa594aaf8fc8ab99b180fa6f5670fd7fd3
1 /* NSPAPI.H -- winsock 1.1
2 * not supported on win95
3 */
5 #ifndef _WINE_NSPAPI_
6 #define _WINE_NSPAPI_
8 #include "windef.h"
10 #ifdef __cplusplus
11 extern "C" {
12 #endif /* defined(__cplusplus) */
14 * constants
16 #define XP_CONNECTIONLESS 0x00000001
17 #define XP_GUARANTEED_DELIVERY 0x00000002
18 #define XP_GUARANTEED_ORDER 0x00000004
19 #define XP_MESSAGE_ORIENTED 0x00000008
20 #define XP_PSEUDO_STREAM 0x00000010
21 #define XP_GRACEFUL_CLOSE 0x00000020
22 #define XP_EXPEDITED_DATA 0x00000040
23 #define XP_CONNECT_DATA 0x00000080
24 #define XP_DISCONNECT_DATA 0x00000100
25 #define XP_SUPPORTS_BROADCAST 0x00000200
26 #define XP_SUPPORTS_MULTICAST 0x00000400
27 #define XP_BANDWITH_ALLOCATION 0x00000800
28 #define XP_FRAGMENTATION 0x00001000
29 #define XP_ENCRYPTS 0x00002000
32 * structures
34 typedef struct _PROTOCOL_INFOA
36 DWORD dwServiceFlags;
37 INT iAddressFamily;
38 INT iMaxSockAddr;
39 INT iMinSockAddr;
40 INT iSocketType;
41 INT iProtocol;
42 DWORD dwMessageSize;
43 LPSTR lpProtocol;
44 } PROTOCOL_INFOA;
46 typedef struct _PROTOCOL_INFOW
48 DWORD dwServiceFlags;
49 INT iAddressFamily;
50 INT iMaxSockAddr;
51 INT iMinSockAddr;
52 INT iSocketType;
53 INT iProtocol;
54 DWORD dwMessageSize;
55 LPWSTR lpProtocol;
56 } PROTOCOL_INFOW;
60 * function prototypes
65 #ifdef __cplusplus
66 } /* extern "C" */
67 #endif /* defined(__cplusplus) */
69 #endif /* _WINE_NSPAPI_ */