ReactOS 0.4.15-dev-7681-g776c3a3
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
7extern "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
34typedef struct _WINSOCK_MAPPING {
37 struct {
41 } Mapping[1];
43typedef struct _SOCKADDR_INFO {
47
66
85
86#endif /* RC_INVOKED */
87
88#ifdef __cplusplus
89}
90#endif /* __cplusplus */
91
92#endif /* _WSAHELP_H */
UNICODE_STRING * PUNICODE_STRING
Definition: env_spec_w32.h:373
unsigned long DWORD
Definition: ntddk_ex.h:95
#define PCHAR
Definition: match.c:90
#define LPDWORD
Definition: nt_native.h:46
#define DWORD
Definition: nt_native.h:44
#define LPVOID
Definition: nt_native.h:45
DWORD * PDWORD
Definition: pedump.c:68
#define INT
Definition: polytest.cpp:20
GUID * LPGUID
Definition: guiddef.h:81
SOCKADDR_ADDRESS_INFO AddressInfo
Definition: wsahelp.h:44
SOCKADDR_ENDPOINT_INFO EndpointInfo
Definition: wsahelp.h:45
struct _WINSOCK_MAPPING::@3368 Mapping[1]
DWORD AddressFamily
Definition: wsahelp.h:38
DWORD Protocol
Definition: wsahelp.h:40
DWORD SocketType
Definition: wsahelp.h:39
DWORD Columns
Definition: wsahelp.h:36
void * PVOID
Definition: typedefs.h:50
PVOID HANDLE
Definition: typedefs.h:73
uint32_t * LPDWORD
Definition: typedefs.h:59
int32_t INT
Definition: typedefs.h:58
char * PCHAR
Definition: typedefs.h:51
BOOL * LPBOOL
Definition: windef.h:162
int * LPINT
Definition: windef.h:178
int * PINT
Definition: windef.h:177
#define WINAPI
Definition: msvc.h:6
unsigned int GROUP
Definition: winsock2.h:640
struct _QualityOfService * LPQOS
void(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)(IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)
Definition: winsock2.h:722
struct _WSAOVERLAPPED * LPWSAOVERLAPPED
struct _WSAPROTOCOL_INFOW * LPWSAPROTOCOL_INFOW
UINT_PTR SOCKET
Definition: winsock.h:47
struct sockaddr * PSOCKADDR
Definition: winsock.h:485
struct sockaddr * LPSOCKADDR
Definition: winsock.h:486
struct _WSABUF * LPWSABUF
struct _WINSOCK_MAPPING * PWINSOCK_MAPPING
INT WINAPI WSHNotify(PVOID, SOCKET, HANDLE, HANDLE, DWORD)
DWORD(WINAPI * PWSH_GET_WINSOCK_MAPPING)(PWINSOCK_MAPPING, DWORD)
Definition: wsahelp.h:74
INT WINAPI WSHGetWildcardSockaddr(PVOID, PSOCKADDR, PINT)
INT(WINAPI * PWSH_GET_BROADCAST_SOCKADDR)(PVOID, PSOCKADDR, PINT)
Definition: wsahelp.h:69
INT(WINAPI * PWSH_GET_WILDCARD_SOCKADDR)(PVOID, PSOCKADDR, PINT)
Definition: wsahelp.h:73
INT WINAPI WSHGetWSAProtocolInfo(LPWSTR, LPWSAPROTOCOL_INFOW *, LPDWORD)
INT WINAPI WSHGetSocketInformation(PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, LPINT)
enum _SOCKADDR_ADDRESS_INFO SOCKADDR_ADDRESS_INFO
INT WINAPI WSHOpenSocket2(PINT, PINT, PINT, GROUP, DWORD, PUNICODE_STRING, PVOID *, PDWORD)
INT WINAPI WSHEnumProtocols(LPINT, LPWSTR, LPVOID, LPDWORD)
INT(WINAPI * PWSH_SET_SOCKET_INFORMATION)(PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, INT)
Definition: wsahelp.h:83
enum _SOCKADDR_ENDPOINT_INFO SOCKADDR_ENDPOINT_INFO
struct _SOCKADDR_INFO * PSOCKADDR_INFO
_SOCKADDR_ENDPOINT_INFO
Definition: wsahelp.h:29
@ SockaddrEndpointInfoReserved
Definition: wsahelp.h:32
@ SockaddrEndpointInfoNormal
Definition: wsahelp.h:30
@ SockaddrEndpointInfoWildcard
Definition: wsahelp.h:31
INT WINAPI WSHSetSocketInformation(PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, INT)
INT(WINAPI * PWSH_GET_SOCKADDR_TYPE)(PSOCKADDR, DWORD, PSOCKADDR_INFO)
Definition: wsahelp.h:71
INT(WINAPI * PWSH_GET_PROVIDER_GUID)(LPWSTR, LPGUID)
Definition: wsahelp.h:70
INT(WINAPI * PWSH_OPEN_SOCKET2)(PINT, PINT, PINT, GROUP, DWORD, PUNICODE_STRING, PVOID *, PDWORD)
Definition: wsahelp.h:82
INT WINAPI WSHGetSockaddrType(PSOCKADDR, DWORD, PSOCKADDR_INFO)
INT WINAPI WSHStringToAddress(LPWSTR, DWORD, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPDWORD)
_SOCKADDR_ADDRESS_INFO
Definition: wsahelp.h:23
@ SockaddrAddressInfoNormal
Definition: wsahelp.h:24
@ SockaddrAddressInfoLoopback
Definition: wsahelp.h:27
@ SockaddrAddressInfoWildcard
Definition: wsahelp.h:25
@ SockaddrAddressInfoBroadcast
Definition: wsahelp.h:26
struct _SOCKADDR_INFO SOCKADDR_INFO
DWORD WINAPI WSHGetWinsockMapping(PWINSOCK_MAPPING, DWORD)
INT(WINAPI * PWSH_NOTIFY)(PVOID, SOCKET, HANDLE, HANDLE, DWORD)
Definition: wsahelp.h:80
INT WINAPI WSHJoinLeaf(PVOID, SOCKET, HANDLE, HANDLE, PVOID, SOCKET, PSOCKADDR, DWORD, LPWSABUF, LPWSABUF, LPQOS, LPQOS, DWORD)
INT(WINAPI * PWSH_JOIN_LEAF)(PVOID, SOCKET, HANDLE, HANDLE, PVOID, SOCKET, PSOCKADDR, DWORD, LPWSABUF, LPWSABUF, LPQOS, LPQOS, DWORD)
Definition: wsahelp.h:78
INT(WINAPI * PWSH_STRING_TO_ADDRESS)(LPWSTR, DWORD, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPDWORD)
Definition: wsahelp.h:84
struct _WINSOCK_MAPPING WINSOCK_MAPPING
INT WINAPI WSHOpenSocket(PINT, PINT, PINT, PUNICODE_STRING, PVOID, PDWORD)
INT(WINAPI * PWSH_ENUM_PROTOCOLS)(LPINT, LPWSTR, LPVOID, LPDWORD)
Definition: wsahelp.h:68
enum _SOCKADDR_ADDRESS_INFO * PSOCKADDR_ADDRESS_INFO
enum _SOCKADDR_ENDPOINT_INFO * PSOCKADDR_ENDPOINT_INFO
INT(WINAPI * PWSH_OPEN_SOCKET)(PINT, PINT, PINT, PUNICODE_STRING, PVOID, PDWORD)
Definition: wsahelp.h:81
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 WSHGetProviderGuid(LPWSTR, LPGUID)
INT(WINAPI * PWSH_ADDRESS_TO_STRING)(LPSOCKADDR, INT, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD)
Definition: wsahelp.h:67
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 WSHAddressToString(LPSOCKADDR, INT, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD)
INT(WINAPI * PWSH_GET_WSAPROTOCOL_INFO)(LPWSTR, LPWSAPROTOCOL_INFOW *, LPDWORD)
Definition: wsahelp.h:75
INT WINAPI WSHGetBroadcastSockaddr(PVOID, PSOCKADDR, PINT)
WCHAR * LPWSTR
Definition: xmlstorage.h:184