ReactOS  0.4.14-dev-368-gfa26425
wsahelp.h
Go to the documentation of this file.
1 #ifndef _WSAHELP_H
2 #define _WSAHELP_H
3 
4 #include <winsock2.h>
5 #include <ntsecapi.h>
6 #ifdef __cplusplus
7 extern "C" {
8 #endif /* __cplusplus */
9 
10 #define WSH_NOTIFY_BIND 0x00000001
11 #define WSH_NOTIFY_LISTEN 0x00000002
12 #define WSH_NOTIFY_CONNECT 0x00000004
13 #define WSH_NOTIFY_ACCEPT 0x00000008
14 #define WSH_NOTIFY_SHUTDOWN_RECEIVE 0x00000010
15 #define WSH_NOTIFY_SHUTDOWN_SEND 0x00000020
16 #define WSH_NOTIFY_SHUTDOWN_ALL 0x00000040
17 #define WSH_NOTIFY_CLOSE 0x00000080
18 #define WSH_NOTIFY_CONNECT_ERROR 0x00000100
19 #define SOL_INTERNAL 0xFFFE
20 #define SO_CONTEXT 1
21 
22 #ifndef RC_INVOKED
23 typedef enum _SOCKADDR_ADDRESS_INFO {
34 typedef struct _WINSOCK_MAPPING {
37  struct {
41  } Mapping[1];
43 typedef struct _SOCKADDR_INFO {
47 
66 
85 
86 #endif /* RC_INVOKED */
87 
88 #ifdef __cplusplus
89 }
90 #endif /* __cplusplus */
91 
92 #endif /* _WSAHELP_H */
signed char * PCHAR
Definition: retypes.h:7
INT(WINAPI * PWSH_ADDRESS_TO_STRING)(LPSOCKADDR, INT, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD)
Definition: wsahelp.h:67
struct _WINSOCK_MAPPING WINSOCK_MAPPING
INT(WINAPI * PWSH_STRING_TO_ADDRESS)(LPWSTR, DWORD, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPDWORD)
Definition: wsahelp.h:84
struct _SOCKADDR_INFO * PSOCKADDR_INFO
INT WINAPI WSHGetSocketInformation(PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, LPINT)
INT WINAPI WSHNotify(PVOID, SOCKET, HANDLE, HANDLE, DWORD)
DWORD(WINAPI * PWSH_GET_WINSOCK_MAPPING)(PWINSOCK_MAPPING, DWORD)
Definition: wsahelp.h:74
#define INT
Definition: polytest.cpp:20
INT(WINAPI * PWSH_IOCTL)(PVOID, SOCKET, HANDLE, HANDLE, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE, LPBOOL)
Definition: wsahelp.h:76
INT WINAPI WSHGetBroadcastSockaddr(PVOID, PSOCKADDR, PINT)
INT(WINAPI * PWSH_OPEN_SOCKET)(PINT, PINT, PINT, PUNICODE_STRING, PVOID, PDWORD)
Definition: wsahelp.h:81
INT WINAPI WSHStringToAddress(LPWSTR, DWORD, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPDWORD)
INT(WINAPI * PWSH_GET_PROVIDER_GUID)(LPWSTR, LPGUID)
Definition: wsahelp.h:70
struct sockaddr * PSOCKADDR
Definition: winsock.h:485
struct _WINSOCK_MAPPING * PWINSOCK_MAPPING
#define DWORD
Definition: nt_native.h:44
int32_t INT
Definition: typedefs.h:56
INT(WINAPI * PWSH_GET_SOCKET_INFORMATION)(PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, LPINT)
Definition: wsahelp.h:72
INT WINAPI WSHIoctl(PVOID, SOCKET, HANDLE, HANDLE, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE, LPBOOL)
INT WINAPI WSHGetProviderGuid(LPWSTR, LPGUID)
INT(WINAPI * PWSH_GET_BROADCAST_SOCKADDR)(PVOID, PSOCKADDR, PINT)
Definition: wsahelp.h:69
DWORD Columns
Definition: wsahelp.h:36
struct _SOCKADDR_INFO SOCKADDR_INFO
SOCKADDR_ENDPOINT_INFO EndpointInfo
Definition: wsahelp.h:45
enum _SOCKADDR_ENDPOINT_INFO * PSOCKADDR_ENDPOINT_INFO
struct _WSAPROTOCOL_INFOW * LPWSAPROTOCOL_INFOW
struct _OVERLAPPED * LPWSAOVERLAPPED
Definition: winsock2.h:588
void * PVOID
Definition: retypes.h:9
DWORD SocketType
Definition: wsahelp.h:39
struct _QualityOfService * LPQOS
DWORD Protocol
Definition: wsahelp.h:40
#define PCHAR
Definition: match.c:90
INT(WINAPI * PWSH_ENUM_PROTOCOLS)(LPINT, LPWSTR, LPVOID, LPDWORD)
Definition: wsahelp.h:68
_SOCKADDR_ADDRESS_INFO
Definition: wsahelp.h:23
enum _SOCKADDR_ENDPOINT_INFO SOCKADDR_ENDPOINT_INFO
int * PINT
Definition: windef.h:177
struct _WINSOCK_MAPPING::@3268 Mapping[1]
#define WINAPI
Definition: msvc.h:8
unsigned int GROUP
Definition: winsock2.h:640
INT WINAPI WSHOpenSocket2(PINT, PINT, PINT, GROUP, DWORD, PUNICODE_STRING, PVOID *, PDWORD)
PVOID HANDLE
Definition: typedefs.h:71
DWORD AddressFamily
Definition: wsahelp.h:38
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD WINAPI WSHGetWinsockMapping(PWINSOCK_MAPPING, DWORD)
#define LPVOID
Definition: nt_native.h:45
INT WINAPI WSHGetWSAProtocolInfo(LPWSTR, LPWSAPROTOCOL_INFOW *, LPDWORD)
INT WINAPI WSHGetWildcardSockaddr(PVOID, PSOCKADDR, PINT)
INT WINAPI WSHGetSockaddrType(PSOCKADDR, DWORD, PSOCKADDR_INFO)
_SOCKADDR_ENDPOINT_INFO
Definition: wsahelp.h:29
#define LPDWORD
Definition: nt_native.h:46
INT(WINAPI * PWSH_OPEN_SOCKET2)(PINT, PINT, PINT, GROUP, DWORD, PUNICODE_STRING, PVOID *, PDWORD)
Definition: wsahelp.h:82
INT(WINAPI * PWSH_GET_WSAPROTOCOL_INFO)(LPWSTR, LPWSAPROTOCOL_INFOW *, LPDWORD)
Definition: wsahelp.h:75
INT WINAPI WSHSetSocketInformation(PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, INT)
INT WINAPI WSHJoinLeaf(PVOID, SOCKET, HANDLE, HANDLE, PVOID, SOCKET, PSOCKADDR, DWORD, LPWSABUF, LPWSABUF, LPQOS, LPQOS, DWORD)
enum _SOCKADDR_ADDRESS_INFO SOCKADDR_ADDRESS_INFO
struct _WSABUF * LPWSABUF
BOOL * LPBOOL
Definition: windef.h:162
enum _SOCKADDR_ADDRESS_INFO * PSOCKADDR_ADDRESS_INFO
UNICODE_STRING * PUNICODE_STRING
Definition: env_spec_w32.h:373
DWORD * PDWORD
Definition: pedump.c:68
INT(WINAPI * PWSH_JOIN_LEAF)(PVOID, SOCKET, HANDLE, HANDLE, PVOID, SOCKET, PSOCKADDR, DWORD, LPWSABUF, LPWSABUF, LPQOS, LPQOS, DWORD)
Definition: wsahelp.h:78
SOCKADDR_ADDRESS_INFO AddressInfo
Definition: wsahelp.h:44
INT(WINAPI * PWSH_GET_SOCKADDR_TYPE)(PSOCKADDR, DWORD, PSOCKADDR_INFO)
Definition: wsahelp.h:71
void(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)(IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)
Definition: winsock2.h:722
uint32_t * LPDWORD
Definition: typedefs.h:57
UINT_PTR SOCKET
Definition: winsock.h:47
WCHAR * LPWSTR
Definition: xmlstorage.h:184
INT WINAPI WSHAddressToString(LPSOCKADDR, INT, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD)
INT WINAPI WSHOpenSocket(PINT, PINT, PINT, PUNICODE_STRING, PVOID, PDWORD)
INT(WINAPI * PWSH_NOTIFY)(PVOID, SOCKET, HANDLE, HANDLE, DWORD)
Definition: wsahelp.h:80
INT(WINAPI * PWSH_SET_SOCKET_INFORMATION)(PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, INT)
Definition: wsahelp.h:83
INT(WINAPI * PWSH_GET_WILDCARD_SOCKADDR)(PVOID, PSOCKADDR, PINT)
Definition: wsahelp.h:73
INT WINAPI WSHEnumProtocols(LPINT, LPWSTR, LPVOID, LPDWORD)
GUID * LPGUID
Definition: guiddef.h:81
int * LPINT
Definition: windef.h:178
struct sockaddr * LPSOCKADDR
Definition: winsock.h:486