Release 20010510.
[wine] / include / nspapi.h
1 /* NSPAPI.H -- winsock 1.1
2  * not supported on win95
3  */
4
5 #ifndef _WINE_NSPAPI_
6 #define _WINE_NSPAPI_
7
8 #include "windef.h"
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif /* defined(__cplusplus) */
13 /*
14  * constants
15  */
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
30
31 /*
32  * structures
33  */
34 typedef  struct _PROTOCOL_INFOA 
35 {
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;
45
46 typedef  struct _PROTOCOL_INFOW 
47 {
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;
57
58
59 /*
60  * function prototypes
61  */
62
63
64
65 #ifdef __cplusplus
66 }      /* extern "C" */
67 #endif /* defined(__cplusplus) */
68
69 #endif /* _WINE_NSPAPI_ */