ReactOS 0.4.16-dev-88-ga65b6ae
wsahelp.h File Reference
#include <winsock2.h>
#include <ntsecapi.h>
Include dependency graph for wsahelp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _WINSOCK_MAPPING
 
struct  _SOCKADDR_INFO
 

Macros

#define WSH_NOTIFY_BIND   0x00000001
 
#define WSH_NOTIFY_LISTEN   0x00000002
 
#define WSH_NOTIFY_CONNECT   0x00000004
 
#define WSH_NOTIFY_ACCEPT   0x00000008
 
#define WSH_NOTIFY_SHUTDOWN_RECEIVE   0x00000010
 
#define WSH_NOTIFY_SHUTDOWN_SEND   0x00000020
 
#define WSH_NOTIFY_SHUTDOWN_ALL   0x00000040
 
#define WSH_NOTIFY_CLOSE   0x00000080
 
#define WSH_NOTIFY_CONNECT_ERROR   0x00000100
 
#define SOL_INTERNAL   0xFFFE
 
#define SO_CONTEXT   1
 

Typedefs

typedef enum _SOCKADDR_ADDRESS_INFO SOCKADDR_ADDRESS_INFO
 
typedef enum _SOCKADDR_ADDRESS_INFOPSOCKADDR_ADDRESS_INFO
 
typedef enum _SOCKADDR_ENDPOINT_INFO SOCKADDR_ENDPOINT_INFO
 
typedef enum _SOCKADDR_ENDPOINT_INFOPSOCKADDR_ENDPOINT_INFO
 
typedef struct _WINSOCK_MAPPING WINSOCK_MAPPING
 
typedef struct _WINSOCK_MAPPINGPWINSOCK_MAPPING
 
typedef struct _SOCKADDR_INFO SOCKADDR_INFO
 
typedef struct _SOCKADDR_INFOPSOCKADDR_INFO
 
typedef INT(WINAPIPWSH_ADDRESS_TO_STRING) (LPSOCKADDR, INT, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD)
 
typedef INT(WINAPIPWSH_ENUM_PROTOCOLS) (LPINT, LPWSTR, LPVOID, LPDWORD)
 
typedef INT(WINAPIPWSH_GET_BROADCAST_SOCKADDR) (PVOID, PSOCKADDR, PINT)
 
typedef INT(WINAPIPWSH_GET_PROVIDER_GUID) (LPWSTR, LPGUID)
 
typedef INT(WINAPIPWSH_GET_SOCKADDR_TYPE) (PSOCKADDR, DWORD, PSOCKADDR_INFO)
 
typedef INT(WINAPIPWSH_GET_SOCKET_INFORMATION) (PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, LPINT)
 
typedef INT(WINAPIPWSH_GET_WILDCARD_SOCKADDR) (PVOID, PSOCKADDR, PINT)
 
typedef DWORD(WINAPIPWSH_GET_WINSOCK_MAPPING) (PWINSOCK_MAPPING, DWORD)
 
typedef INT(WINAPIPWSH_GET_WSAPROTOCOL_INFO) (LPWSTR, LPWSAPROTOCOL_INFOW *, LPDWORD)
 
typedef INT(WINAPIPWSH_IOCTL) (PVOID, SOCKET, HANDLE, HANDLE, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE, LPBOOL)
 
typedef INT(WINAPIPWSH_JOIN_LEAF) (PVOID, SOCKET, HANDLE, HANDLE, PVOID, SOCKET, PSOCKADDR, DWORD, LPWSABUF, LPWSABUF, LPQOS, LPQOS, DWORD)
 
typedef INT(WINAPIPWSH_NOTIFY) (PVOID, SOCKET, HANDLE, HANDLE, DWORD)
 
typedef INT(WINAPIPWSH_OPEN_SOCKET) (PINT, PINT, PINT, PUNICODE_STRING, PVOID, PDWORD)
 
typedef INT(WINAPIPWSH_OPEN_SOCKET2) (PINT, PINT, PINT, GROUP, DWORD, PUNICODE_STRING, PVOID *, PDWORD)
 
typedef INT(WINAPIPWSH_SET_SOCKET_INFORMATION) (PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, INT)
 
typedef INT(WINAPIPWSH_STRING_TO_ADDRESS) (LPWSTR, DWORD, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPDWORD)
 

Enumerations

enum  _SOCKADDR_ADDRESS_INFO { SockaddrAddressInfoNormal , SockaddrAddressInfoWildcard , SockaddrAddressInfoBroadcast , SockaddrAddressInfoLoopback }
 
enum  _SOCKADDR_ENDPOINT_INFO { SockaddrEndpointInfoNormal , SockaddrEndpointInfoWildcard , SockaddrEndpointInfoReserved }
 

Functions

INT WINAPI WSHAddressToString (LPSOCKADDR, INT, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD)
 
INT WINAPI WSHEnumProtocols (LPINT, LPWSTR, LPVOID, LPDWORD)
 
INT WINAPI WSHGetBroadcastSockaddr (PVOID, PSOCKADDR, PINT)
 
INT WINAPI WSHGetProviderGuid (LPWSTR, LPGUID)
 
INT WINAPI WSHGetSockaddrType (PSOCKADDR, DWORD, PSOCKADDR_INFO)
 
INT WINAPI WSHGetSocketInformation (PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, LPINT)
 
INT WINAPI WSHGetWildcardSockaddr (PVOID, PSOCKADDR, PINT)
 
DWORD WINAPI WSHGetWinsockMapping (PWINSOCK_MAPPING, DWORD)
 
INT WINAPI WSHGetWSAProtocolInfo (LPWSTR, LPWSAPROTOCOL_INFOW *, LPDWORD)
 
INT WINAPI WSHIoctl (PVOID, SOCKET, HANDLE, HANDLE, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE, LPBOOL)
 
INT WINAPI WSHJoinLeaf (PVOID, SOCKET, HANDLE, HANDLE, PVOID, SOCKET, PSOCKADDR, DWORD, LPWSABUF, LPWSABUF, LPQOS, LPQOS, DWORD)
 
INT WINAPI WSHNotify (PVOID, SOCKET, HANDLE, HANDLE, DWORD)
 
INT WINAPI WSHOpenSocket (PINT, PINT, PINT, PUNICODE_STRING, PVOID, PDWORD)
 
INT WINAPI WSHOpenSocket2 (PINT, PINT, PINT, GROUP, DWORD, PUNICODE_STRING, PVOID *, PDWORD)
 
INT WINAPI WSHSetSocketInformation (PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, INT)
 
INT WINAPI WSHStringToAddress (LPWSTR, DWORD, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPDWORD)
 

Macro Definition Documentation

◆ SO_CONTEXT

#define SO_CONTEXT   1

Definition at line 20 of file wsahelp.h.

◆ SOL_INTERNAL

#define SOL_INTERNAL   0xFFFE

Definition at line 19 of file wsahelp.h.

◆ WSH_NOTIFY_ACCEPT

#define WSH_NOTIFY_ACCEPT   0x00000008

Definition at line 13 of file wsahelp.h.

◆ WSH_NOTIFY_BIND

#define WSH_NOTIFY_BIND   0x00000001

Definition at line 10 of file wsahelp.h.

◆ WSH_NOTIFY_CLOSE

#define WSH_NOTIFY_CLOSE   0x00000080

Definition at line 17 of file wsahelp.h.

◆ WSH_NOTIFY_CONNECT

#define WSH_NOTIFY_CONNECT   0x00000004

Definition at line 12 of file wsahelp.h.

◆ WSH_NOTIFY_CONNECT_ERROR

#define WSH_NOTIFY_CONNECT_ERROR   0x00000100

Definition at line 18 of file wsahelp.h.

◆ WSH_NOTIFY_LISTEN

#define WSH_NOTIFY_LISTEN   0x00000002

Definition at line 11 of file wsahelp.h.

◆ WSH_NOTIFY_SHUTDOWN_ALL

#define WSH_NOTIFY_SHUTDOWN_ALL   0x00000040

Definition at line 16 of file wsahelp.h.

◆ WSH_NOTIFY_SHUTDOWN_RECEIVE

#define WSH_NOTIFY_SHUTDOWN_RECEIVE   0x00000010

Definition at line 14 of file wsahelp.h.

◆ WSH_NOTIFY_SHUTDOWN_SEND

#define WSH_NOTIFY_SHUTDOWN_SEND   0x00000020

Definition at line 15 of file wsahelp.h.

Typedef Documentation

◆ PSOCKADDR_ADDRESS_INFO

◆ PSOCKADDR_ENDPOINT_INFO

◆ PSOCKADDR_INFO

◆ PWINSOCK_MAPPING

◆ PWSH_ADDRESS_TO_STRING

typedef INT(WINAPI * PWSH_ADDRESS_TO_STRING) (LPSOCKADDR, INT, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD)

Definition at line 67 of file wsahelp.h.

◆ PWSH_ENUM_PROTOCOLS

typedef INT(WINAPI * PWSH_ENUM_PROTOCOLS) (LPINT, LPWSTR, LPVOID, LPDWORD)

Definition at line 68 of file wsahelp.h.

◆ PWSH_GET_BROADCAST_SOCKADDR

typedef INT(WINAPI * PWSH_GET_BROADCAST_SOCKADDR) (PVOID, PSOCKADDR, PINT)

Definition at line 69 of file wsahelp.h.

◆ PWSH_GET_PROVIDER_GUID

typedef INT(WINAPI * PWSH_GET_PROVIDER_GUID) (LPWSTR, LPGUID)

Definition at line 70 of file wsahelp.h.

◆ PWSH_GET_SOCKADDR_TYPE

typedef INT(WINAPI * PWSH_GET_SOCKADDR_TYPE) (PSOCKADDR, DWORD, PSOCKADDR_INFO)

Definition at line 71 of file wsahelp.h.

◆ PWSH_GET_SOCKET_INFORMATION

typedef INT(WINAPI * PWSH_GET_SOCKET_INFORMATION) (PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, LPINT)

Definition at line 72 of file wsahelp.h.

◆ PWSH_GET_WILDCARD_SOCKADDR

typedef INT(WINAPI * PWSH_GET_WILDCARD_SOCKADDR) (PVOID, PSOCKADDR, PINT)

Definition at line 73 of file wsahelp.h.

◆ PWSH_GET_WINSOCK_MAPPING

typedef DWORD(WINAPI * PWSH_GET_WINSOCK_MAPPING) (PWINSOCK_MAPPING, DWORD)

Definition at line 74 of file wsahelp.h.

◆ PWSH_GET_WSAPROTOCOL_INFO

typedef INT(WINAPI * PWSH_GET_WSAPROTOCOL_INFO) (LPWSTR, LPWSAPROTOCOL_INFOW *, LPDWORD)

Definition at line 75 of file wsahelp.h.

◆ PWSH_IOCTL

◆ PWSH_JOIN_LEAF

Definition at line 78 of file wsahelp.h.

◆ PWSH_NOTIFY

typedef INT(WINAPI * PWSH_NOTIFY) (PVOID, SOCKET, HANDLE, HANDLE, DWORD)

Definition at line 80 of file wsahelp.h.

◆ PWSH_OPEN_SOCKET

typedef INT(WINAPI * PWSH_OPEN_SOCKET) (PINT, PINT, PINT, PUNICODE_STRING, PVOID, PDWORD)

Definition at line 81 of file wsahelp.h.

◆ PWSH_OPEN_SOCKET2

typedef INT(WINAPI * PWSH_OPEN_SOCKET2) (PINT, PINT, PINT, GROUP, DWORD, PUNICODE_STRING, PVOID *, PDWORD)

Definition at line 82 of file wsahelp.h.

◆ PWSH_SET_SOCKET_INFORMATION

typedef INT(WINAPI * PWSH_SET_SOCKET_INFORMATION) (PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, INT)

Definition at line 83 of file wsahelp.h.

◆ PWSH_STRING_TO_ADDRESS

typedef INT(WINAPI * PWSH_STRING_TO_ADDRESS) (LPWSTR, DWORD, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPDWORD)

Definition at line 84 of file wsahelp.h.

◆ SOCKADDR_ADDRESS_INFO

◆ SOCKADDR_ENDPOINT_INFO

◆ SOCKADDR_INFO

◆ WINSOCK_MAPPING

Enumeration Type Documentation

◆ _SOCKADDR_ADDRESS_INFO

Enumerator
SockaddrAddressInfoNormal 
SockaddrAddressInfoWildcard 
SockaddrAddressInfoBroadcast 
SockaddrAddressInfoLoopback 

Definition at line 23 of file wsahelp.h.

23 {
enum _SOCKADDR_ADDRESS_INFO SOCKADDR_ADDRESS_INFO
@ SockaddrAddressInfoNormal
Definition: wsahelp.h:24
@ SockaddrAddressInfoLoopback
Definition: wsahelp.h:27
@ SockaddrAddressInfoWildcard
Definition: wsahelp.h:25
@ SockaddrAddressInfoBroadcast
Definition: wsahelp.h:26
enum _SOCKADDR_ADDRESS_INFO * PSOCKADDR_ADDRESS_INFO

◆ _SOCKADDR_ENDPOINT_INFO

Enumerator
SockaddrEndpointInfoNormal 
SockaddrEndpointInfoWildcard 
SockaddrEndpointInfoReserved 

Definition at line 29 of file wsahelp.h.

29 {
enum _SOCKADDR_ENDPOINT_INFO SOCKADDR_ENDPOINT_INFO
@ SockaddrEndpointInfoReserved
Definition: wsahelp.h:32
@ SockaddrEndpointInfoNormal
Definition: wsahelp.h:30
@ SockaddrEndpointInfoWildcard
Definition: wsahelp.h:31
enum _SOCKADDR_ENDPOINT_INFO * PSOCKADDR_ENDPOINT_INFO

Function Documentation

◆ WSHAddressToString()

INT WINAPI WSHAddressToString ( LPSOCKADDR  ,
INT  ,
LPWSAPROTOCOL_INFOW  ,
LPWSTR  ,
LPDWORD   
)

◆ WSHEnumProtocols()

INT WINAPI WSHEnumProtocols ( LPINT  ,
LPWSTR  ,
LPVOID  ,
LPDWORD   
)

◆ WSHGetBroadcastSockaddr()

INT WINAPI WSHGetBroadcastSockaddr ( PVOID  ,
PSOCKADDR  ,
PINT   
)

◆ WSHGetProviderGuid()

INT WINAPI WSHGetProviderGuid ( LPWSTR  ,
LPGUID   
)

◆ WSHGetSockaddrType()

INT WINAPI WSHGetSockaddrType ( PSOCKADDR  ,
DWORD  ,
PSOCKADDR_INFO   
)

◆ WSHGetSocketInformation()

INT WINAPI WSHGetSocketInformation ( PVOID  ,
SOCKET  ,
HANDLE  ,
HANDLE  ,
INT  ,
INT  ,
PCHAR  ,
LPINT   
)

◆ WSHGetWildcardSockaddr()

INT WINAPI WSHGetWildcardSockaddr ( PVOID  ,
PSOCKADDR  ,
PINT   
)

◆ WSHGetWinsockMapping()

DWORD WINAPI WSHGetWinsockMapping ( PWINSOCK_MAPPING  ,
DWORD   
)

◆ WSHGetWSAProtocolInfo()

INT WINAPI WSHGetWSAProtocolInfo ( LPWSTR  ,
LPWSAPROTOCOL_INFOW ,
LPDWORD   
)

◆ WSHIoctl()

INT WINAPI WSHIoctl ( PVOID  ,
SOCKET  ,
HANDLE  ,
HANDLE  ,
DWORD  ,
LPVOID  ,
DWORD  ,
LPVOID  ,
DWORD  ,
LPDWORD  ,
LPWSAOVERLAPPED  ,
LPWSAOVERLAPPED_COMPLETION_ROUTINE  ,
LPBOOL   
)

◆ WSHJoinLeaf()

INT WINAPI WSHJoinLeaf ( PVOID  ,
SOCKET  ,
HANDLE  ,
HANDLE  ,
PVOID  ,
SOCKET  ,
PSOCKADDR  ,
DWORD  ,
LPWSABUF  ,
LPWSABUF  ,
LPQOS  ,
LPQOS  ,
DWORD   
)

◆ WSHNotify()

INT WINAPI WSHNotify ( PVOID  ,
SOCKET  ,
HANDLE  ,
HANDLE  ,
DWORD   
)

◆ WSHOpenSocket()

INT WINAPI WSHOpenSocket ( PINT  ,
PINT  ,
PINT  ,
PUNICODE_STRING  ,
PVOID  ,
PDWORD   
)

◆ WSHOpenSocket2()

INT WINAPI WSHOpenSocket2 ( PINT  ,
PINT  ,
PINT  ,
GROUP  ,
DWORD  ,
PUNICODE_STRING  ,
PVOID ,
PDWORD   
)

◆ WSHSetSocketInformation()

INT WINAPI WSHSetSocketInformation ( PVOID  ,
SOCKET  ,
HANDLE  ,
HANDLE  ,
INT  ,
INT  ,
PCHAR  ,
INT   
)

◆ WSHStringToAddress()

INT WINAPI WSHStringToAddress ( LPWSTR  ,
DWORD  ,
LPWSAPROTOCOL_INFOW  ,
LPSOCKADDR  ,
LPDWORD   
)