ReactOS  0.4.13-dev-249-gcba1a2f
ws2spi.h File Reference
#include <winsock2.h>
#include <pshpack4.h>
#include <poppack.h>
Include dependency graph for ws2spi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _WSATHREADID
 
struct  WSPData
 
struct  _WSPPROC_TABLE
 
struct  _WSPUPCALLTABLE
 
struct  _NSP_ROUTINE
 
struct  _NSPV2_ROUTINE
 

Macros

#define _WS2SPI_H
 
#define WSPDESCRIPTION_LEN   255
 
#define WSS_OPERATION_IN_PROGRESS   0x00000103L
 
#define WSPAPI   WSAAPI
 

Typedefs

typedef struct _WSATHREADID WSATHREADID
 
typedef struct _WSATHREADIDLPWSATHREADID
 
typedef struct WSPData WSPDATA
 
typedef struct WSPDataLPWSPDATA
 
typedef _Must_inspect_result_ SOCKET(WSPAPILPWSPACCEPT) (_In_ SOCKET s, _Out_writes_bytes_to_opt_(*addrlen, *addrlen) struct sockaddr FAR *addr, _Inout_opt_ LPINT addrlen, _In_opt_ LPCONDITIONPROC lpfnCondition, _In_opt_ DWORD_PTR dwCallbackData, _Out_ LPINT lpErrno)
 
typedef INT(WSPAPILPWSPADDRESSTOSTRING) (_In_reads_bytes_(dwAddressLength) LPSOCKADDR lpsaAddress, _In_ DWORD dwAddressLength, _In_opt_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _Out_writes_to_(*lpdwAddressStringLength, *lpdwAddressStringLength) LPWSTR lpszAddressString, _Inout_ LPDWORD lpdwAddressStringLength, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPASYNCSELECT) (_In_ SOCKET s, _In_ HWND hWnd, _In_ unsigned int wMsg, _In_ long lEvent, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPBIND) (_In_ SOCKET s, _In_reads_bytes_(namelen) const struct sockaddr FAR *name, _In_ int namelen, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPCANCELBLOCKINGCALL) (_Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPCLEANUP) (_Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPCLOSESOCKET) (_In_ SOCKET s, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPCONNECT) (_In_ SOCKET s, _In_reads_bytes_(namelen) const struct sockaddr FAR *name, _In_ int namelen, _In_opt_ LPWSABUF lpCallerData, _Out_opt_ LPWSABUF lpCalleeData, _In_opt_ LPQOS lpSQOS, _In_opt_ LPQOS lpGQOS, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPDUPLICATESOCKET) (_In_ SOCKET s, _In_ DWORD dwProcessId, _Out_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPENUMNETWORKEVENTS) (_In_ SOCKET s, _In_ WSAEVENT hEventObject, _Out_ LPWSANETWORKEVENTS lpNetworkEvents, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPEVENTSELECT) (_In_ SOCKET s, _In_opt_ WSAEVENT hEventObject, _In_ long lNetworkEvents, _Out_ LPINT lpErrno)
 
typedef BOOL(WSPAPILPWSPGETOVERLAPPEDRESULT) (_In_ SOCKET s, _In_ LPWSAOVERLAPPED lpOverlapped, _Out_ LPDWORD lpcbTransfer, _In_ BOOL fWait, _Out_ LPDWORD lpdwFlags, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPGETPEERNAME) (_In_ SOCKET s, _Out_writes_bytes_to_(*namelen, *namelen) struct sockaddr FAR *name, _Inout_ LPINT namelen, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPGETSOCKNAME) (_In_ SOCKET s, _Out_writes_bytes_to_(*namelen, *namelen) struct sockaddr FAR *name, _Inout_ LPINT namelen, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPGETSOCKOPT) (_In_ SOCKET s, _In_ int level, _In_ int optname, _Out_writes_bytes_(*optlen) char FAR *optval, _Inout_ LPINT optlen, _Out_ LPINT lpErrno)
 
typedef BOOL(WSPAPILPWSPGETQOSBYNAME) (_In_ SOCKET s, _In_ LPWSABUF lpQOSName, _Out_ LPQOS lpQOS, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPIOCTL) (_In_ SOCKET s, _In_ DWORD dwIoControlCode, _In_reads_bytes_opt_(cbInBuffer) LPVOID lpvInBuffer, _In_ DWORD cbInBuffer, _Out_writes_bytes_to_opt_(cbOutBuffer, *lpcbBytesReturned) LPVOID lpvOutBuffer, _In_ DWORD cbOutBuffer, _Out_ LPDWORD lpcbBytesReturned, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)
 
typedef SOCKET(WSPAPILPWSPJOINLEAF) (_In_ SOCKET s, _In_reads_bytes_(namelen) const struct sockaddr FAR *name, _In_ int namelen, _In_opt_ LPWSABUF lpCallerData, _Out_opt_ LPWSABUF lpCalleeData, _In_opt_ LPQOS lpSQOS, _In_opt_ LPQOS lpGQOS, _In_ DWORD dwFlags, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPLISTEN) (_In_ SOCKET s, _In_ int backlog, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPRECV) (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesRecvd, _Inout_ LPDWORD lpFlags, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _In_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPRECVDISCONNECT) (_In_ SOCKET s, _In_opt_ LPWSABUF lpInboundDisconnectData, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPRECVFROM) (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesRecvd, _Inout_ LPDWORD lpFlags, _Out_writes_bytes_to_opt_(*lpFromlen, *lpFromlen) struct sockaddr FAR *lpFrom, _Inout_opt_ LPINT lpFromlen, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPSELECT) (_In_ int nfds, _Inout_opt_ fd_set FAR *readfds, _Inout_opt_ fd_set FAR *writefds, _Inout_opt_ fd_set FAR *exceptfds, _In_opt_ const struct timeval FAR *timeout, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPSEND) (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesSent, _In_ DWORD dwFlags, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPSENDDISCONNECT) (_In_ SOCKET s, _In_opt_ LPWSABUF lpOutboundDisconnectData, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPSENDTO) (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesSent, _In_ DWORD dwFlags, _In_reads_bytes_opt_(iTolen) const struct sockaddr FAR *lpTo, _In_ int iTolen, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPSETSOCKOPT) (_In_ SOCKET s, _In_ int level, _In_ int optname, _In_reads_bytes_opt_(optlen) const char FAR *optval, _In_ int optlen, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSPSHUTDOWN) (_In_ SOCKET s, _In_ int how, _Out_ LPINT lpErrno)
 
typedef _Must_inspect_result_ SOCKET(WSPAPILPWSPSOCKET) (_In_ int af, _In_ int type, _In_ int protocol, _In_opt_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _In_ GROUP g, _In_ DWORD dwFlags, _Out_ LPINT lpErrno)
 
typedef INT(WSPAPILPWSPSTRINGTOADDRESS) (_In_ LPWSTR AddressString, _In_ INT AddressFamily, _In_opt_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _Out_writes_bytes_to_(*lpAddressLength, *lpAddressLength) LPSOCKADDR lpAddress, _Inout_ LPINT lpAddressLength, _Out_ LPINT lpErrno)
 
typedef BOOL(WSPAPILPWPUCLOSEEVENT) (_In_ WSAEVENT hEvent, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWPUCLOSESOCKETHANDLE) (_In_ SOCKET s, _Out_ LPINT lpErrno)
 
typedef WSAEVENT(WSPAPILPWPUCREATEEVENT) (_Out_ LPINT lpErrno)
 
typedef _Must_inspect_result_ SOCKET(WSPAPILPWPUCREATESOCKETHANDLE) (_In_ DWORD dwCatalogEntryId, _In_ DWORD_PTR dwContext, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWPUFDISSET) (_In_ SOCKET s, _In_ fd_set FAR *fdset)
 
typedef int(WSPAPILPWPUGETPROVIDERPATH) (_In_ LPGUID lpProviderId, _Out_writes_(*lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath, _Inout_ LPINT lpProviderDllPathLen, _Out_ LPINT lpErrno)
 
typedef SOCKET(WSPAPILPWPUMODIFYIFSHANDLE) (_In_ DWORD dwCatalogEntryId, _In_ SOCKET ProposedHandle, _Out_ LPINT lpErrno)
 
typedef BOOL(WSPAPILPWPUPOSTMESSAGE) (_In_ HWND hWnd, _In_ UINT Msg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
typedef int(WSPAPILPWPUQUERYBLOCKINGCALLBACK) (_In_ DWORD dwCatalogEntryId, _Out_ LPBLOCKINGCALLBACK FAR *lplpfnCallback, _Out_ PDWORD_PTR lpdwContext, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWPUQUERYSOCKETHANDLECONTEXT) (_In_ SOCKET s, _Out_ PDWORD_PTR lpContext, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWPUQUEUEAPC) (_In_ LPWSATHREADID lpThreadId, _In_ LPWSAUSERAPC lpfnUserApc, _In_ DWORD_PTR dwContext, _Out_ LPINT lpErrno)
 
typedef BOOL(WSPAPILPWPURESETEVENT) (_In_ WSAEVENT hEvent, _Out_ LPINT lpErrno)
 
typedef BOOL(WSPAPILPWPUSETEVENT) (_In_ WSAEVENT hEvent, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWPUOPENCURRENTTHREAD) (_Out_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWPUCLOSETHREAD) (_In_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWPUCOMPLETEOVERLAPPEDREQUEST) (_In_ SOCKET s, _Inout_ LPWSAOVERLAPPED lpOverlapped, _In_ DWORD dwError, _In_ DWORD cbTransferred, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSCENUMPROTOCOLS) (_In_opt_ LPINT lpiProtocols, _Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferlength) LPWSAPROTOCOL_INFOW lpProtocolBuffer, _Inout_ LPDWORD lpdwBufferLength, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSCDEINSTALLPROVIDER) (_In_ LPGUID lpProviderId, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSCINSTALLPROVIDER) (_In_ LPGUID lpProviderId, _In_z_ const WCHAR FAR *lpszProviderDllPath, _In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList, _In_ DWORD dwNumberOfEntries, _Out_ LPINT lpErrno)
 
typedef int(WSPAPILPWSCGETPROVIDERPATH) (_In_ LPGUID lpProviderId, _Out_writes_to_(*lpProviderDllPathLen, *lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath, _Inout_ LPINT lpProviderDllPathLen, _Out_ LPINT lpErrno)
 
typedef INT(WSPAPILPWSCINSTALLNAMESPACE) (_In_ LPWSTR lpszIdentifier, _In_ LPWSTR lpszPathName, _In_ DWORD dwNameSpace, _In_ DWORD dwVersion, _In_ LPGUID lpProviderId)
 
typedef INT(WSPAPILPWSCUNINSTALLNAMESPACE) (_In_ LPGUID lpProviderId)
 
typedef INT(WSPAPILPWSCENABLENSPROVIDER) (_In_ LPGUID lpProviderId, _In_ BOOL fEnable)
 
typedef struct _WSPPROC_TABLE WSPPROC_TABLE
 
typedef struct _WSPPROC_TABLELPWSPPROC_TABLE
 
typedef INT(WSAAPILPNSPCLEANUP) (_In_ LPGUID lpProviderId)
 
typedef INT(WSAAPILPNSPLOOKUPSERVICEBEGIN) (_In_ LPGUID lpProviderId, _In_ LPWSAQUERYSETW lpqsRestrictions, _In_ LPWSASERVICECLASSINFOW lpServiceClassInfo, _In_ DWORD dwControlFlags, _Out_ LPHANDLE lphLookup)
 
typedef INT(WSAAPILPNSPLOOKUPSERVICENEXT) (_In_ HANDLE hLookup, _In_ DWORD dwControlFlags, _Inout_ LPDWORD lpdwBufferLength, _Out_writes_bytes_to_(*lpdwBufferLength, *lpdwBufferLength) LPWSAQUERYSETW lpqsResults)
 
typedef INT(WSAAPILPNSPLOOKUPSERVICEEND) (_In_ HANDLE hLookup)
 
typedef INT(WSAAPILPNSPSETSERVICE) (_In_ LPGUID lpProviderId, _In_ LPWSASERVICECLASSINFOW lpServiceClassInfo, _In_ LPWSAQUERYSETW lpqsRegInfo, _In_ WSAESETSERVICEOP essOperation, _In_ DWORD dwControlFlags)
 
typedef INT(WSAAPILPNSPINSTALLSERVICECLASS) (_In_ LPGUID lpProviderId, _In_ LPWSASERVICECLASSINFOW lpServiceClassInfo)
 
typedef INT(WSAAPILPNSPREMOVESERVICECLASS) (_In_ LPGUID lpProviderId, _In_ LPGUID lpServiceClassId)
 
typedef INT(WSAAPILPNSPGETSERVICECLASSINFO) (_In_ LPGUID lpProviderId, _In_ LPDWORD lpdwBufSize, _In_ LPWSASERVICECLASSINFOW lpServiceClassInfo)
 
typedef _Must_inspect_result_ INT(WSAAPILPNSPV2STARTUP) (_In_ LPGUID lpProviderId, _Outptr_ LPVOID *ppvClientSessionArg)
 
typedef INT(WSAAPILPNSPV2CLEANUP) (_In_ LPGUID lpProviderId, _In_ LPVOID pvClientSessionArg)
 
typedef INT(WSAAPILPNSPV2LOOKUPSERVICEBEGIN) (_In_ LPGUID lpProviderId, _In_ LPWSAQUERYSET2W lpqsRestrictions, _In_ DWORD dwControlFlags, _In_ LPVOID lpvClientSessionArg, _Out_ LPHANDLE lphLookup)
 
typedef VOID(WSAAPILPNSPV2LOOKUPSERVICENEXTEX) (_In_ HANDLE hAsyncCall, _In_ HANDLE hLookup, _In_ DWORD dwControlFlags, _In_ LPDWORD lpdwBufferLength, _Out_ LPWSAQUERYSET2W lpqsResults)
 
typedef INT(WSAAPILPNSPV2LOOKUPSERVICEEND) (_In_ HANDLE hLookup)
 
typedef VOID(WSAAPILPNSPV2SETSERVICEEX) (_In_ HANDLE hAsyncCall, _In_ LPGUID lpProviderId, _In_ LPWSAQUERYSET2W lpqsRegInfo, _In_ WSAESETSERVICEOP essOperation, _In_ DWORD dwControlFlags, _In_ LPVOID lpvClientSessionArg)
 
typedef VOID(WSAAPILPNSPV2CLIENTSESSIONRUNDOWN) (_In_ LPGUID lpProviderId, _In_ LPVOID pvClientSessionArg)
 
typedef struct _WSPUPCALLTABLE WSPUPCALLTABLE
 
typedef struct _WSPUPCALLTABLELPWSPUPCALLTABLE
 
typedef _Must_inspect_result_ int(WSPAPILPWSPSTARTUP) (_In_ WORD wVersionRequested, _In_ LPWSPDATA lpWSPData, _In_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _In_ WSPUPCALLTABLE UpcallTable, _Out_ LPWSPPROC_TABLE lpProcTable)
 
typedef struct _NSP_ROUTINE NSP_ROUTINE
 
typedef struct _NSP_ROUTINEPNSP_ROUTINE
 
typedef struct _NSP_ROUTINELPNSP_ROUTINE
 
typedef _Must_inspect_result_ INT(WSAAPILPNSPSTARTUP) (_In_ LPGUID lpProviderId, _Inout_ LPNSP_ROUTINE lpnspRoutines)
 
typedef struct _NSPV2_ROUTINE NSPV2_ROUTINE
 
typedef struct _NSPV2_ROUTINEPNSPV2_ROUTINE
 
typedef struct _NSPV2_ROUTINELPNSPV2_ROUTINE
 
typedef const NSPV2_ROUTINEPCNSPV2_ROUTINE
 
typedef const NSPV2_ROUTINELPCNSPV2_ROUTINE
 
typedef int(WSPAPILPWSCINSTALLQOSTEMPLATE) (_In_ const LPGUID Guid, _In_ LPWSABUF QosName, _In_ LPQOS Qos)
 
typedef int(WSPAPILPWSCREMOVEQOSTEMPLATE) (_In_ const LPGUID Guid, _In_ LPWSABUF QosName)
 

Functions

typedef BOOL (CALLBACK FAR *LPBLOCKINGCALLBACK)(DWORD_PTR dwContext)
 
typedef VOID (CALLBACK FAR *LPWSAUSERAPC)(DWORD_PTR dwContext)
 
_Must_inspect_result_ int WSPAPI WSPStartup (_In_ WORD wVersionRequested, _In_ LPWSPDATA lpWSPData, _In_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _In_ WSPUPCALLTABLE UpcallTable, _Out_ LPWSPPROC_TABLE lpProcTable)
 
int WSPAPI WSCEnumProtocols (_In_opt_ LPINT lpiProtocols, _Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferLength) LPWSAPROTOCOL_INFOW lpProtocolBuffer, _Inout_ LPDWORD lpdwBufferLength, _Out_ LPINT lpErrno)
 
int WSPAPI WSCDeinstallProvider (_In_ LPGUID lpProviderId, _Out_ LPINT lpErrno)
 
int WSPAPI WSCInstallProvider (_In_ LPGUID lpProviderId, _In_z_ const WCHAR FAR *lpszProviderDllPath, _In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList, _In_ DWORD dwNumberOfEntries, _Out_ LPINT lpErrno)
 
int WSPAPI WSCGetProviderPath (_In_ LPGUID lpProviderId, _Out_writes_to_(*lpProviderDllPathLen, *lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath, _Inout_ LPINT lpProviderDllPathLen, _Out_ LPINT lpErrno)
 
int WSPAPI WSCInstallQOSTemplate (_In_ const LPGUID Guid, _In_ LPWSABUF QosName, _In_ LPQOS Qos)
 
int WSPAPI WSCRemoveQOSTemplate (_In_ const LPGUID Guid, _In_ LPWSABUF QosName)
 
BOOL WSPAPI WPUCloseEvent (_In_ WSAEVENT hEvent, _Out_ LPINT lpErrno)
 
int WSPAPI WPUCloseSocketHandle (_In_ SOCKET s, _Out_ LPINT lpErrno)
 
WSAEVENT WSPAPI WPUCreateEvent (_Out_ LPINT lpErrno)
 
SOCKET WSPAPI WPUCreateSocketHandle (_In_ DWORD dwCatalogEntryId, _In_ DWORD_PTR dwContext, _Out_ LPINT lpErrno)
 
int WSPAPI WPUFDIsSet (_In_ SOCKET s, _In_ fd_set FAR *fdset)
 
int WSPAPI WPUGetProviderPath (_In_ LPGUID lpProviderId, _Out_writes_(*lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath, _Inout_ LPINT lpProviderDllPathLen, _Out_ LPINT lpErrno)
 
SOCKET WSPAPI WPUModifyIFSHandle (_In_ DWORD dwCatalogEntryId, _In_ SOCKET ProposedHandle, _Out_ LPINT lpErrno)
 
BOOL WSPAPI WPUPostMessage (_In_ HWND hWnd, _In_ UINT Msg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
int WSPAPI WPUQueryBlockingCallback (_In_ DWORD dwCatalogEntryId, _Out_ LPBLOCKINGCALLBACK FAR *lplpfnCallback, _Out_ PDWORD_PTR lpdwContext, _Out_ LPINT lpErrno)
 
int WSPAPI WPUQuerySocketHandleContext (_In_ SOCKET s, _Out_ PDWORD_PTR lpContext, _Out_ LPINT lpErrno)
 
int WSPAPI WPUQueueApc (_In_ LPWSATHREADID lpThreadId, _In_ LPWSAUSERAPC lpfnUserApc, _In_ DWORD_PTR dwContext, _Out_ LPINT lpErrno)
 
BOOL WSPAPI WPUResetEvent (_In_ WSAEVENT hEvent, _Out_ LPINT lpErrno)
 
BOOL WSPAPI WPUSetEvent (_In_ WSAEVENT hEvent, _Out_ LPINT lpErrno)
 
int WSPAPI WPUCompleteOverlappedRequest (_In_ SOCKET s, _Inout_ LPWSAOVERLAPPED lpOverlapped, _In_ DWORD dwError, _In_ DWORD cbTransferred, _Out_ LPINT lpErrno)
 
INT WSPAPI WSCInstallNameSpace (_In_ LPWSTR lpszIdentifier, _In_ LPWSTR lpszPathName, _In_ DWORD dwNameSpace, _In_ DWORD dwVersion, _In_ LPGUID lpProviderId)
 
INT WSPAPI WSCUnInstallNameSpace (_In_ LPGUID lpProviderId)
 
INT WSPAPI WSCEnableNSProvider (_In_ LPGUID lpProviderId, _In_ BOOL fEnable)
 
_Must_inspect_result_ INT WSAAPI NSPStartup (_In_ LPGUID lpProviderId, _Inout_ LPNSP_ROUTINE lpnspRoutines)
 

Macro Definition Documentation

◆ _WS2SPI_H

#define _WS2SPI_H

Definition at line 21 of file ws2spi.h.

◆ WSPAPI

#define WSPAPI   WSAAPI

Definition at line 39 of file ws2spi.h.

◆ WSPDESCRIPTION_LEN

#define WSPDESCRIPTION_LEN   255

Definition at line 35 of file ws2spi.h.

◆ WSS_OPERATION_IN_PROGRESS

#define WSS_OPERATION_IN_PROGRESS   0x00000103L

Definition at line 37 of file ws2spi.h.

Typedef Documentation

◆ LPCNSPV2_ROUTINE

Definition at line 687 of file ws2spi.h.

◆ LPNSP_ROUTINE

◆ LPNSPCLEANUP

typedef INT(WSAAPI * LPNSPCLEANUP) (_In_ LPGUID lpProviderId)

Definition at line 494 of file ws2spi.h.

◆ LPNSPGETSERVICECLASSINFO

typedef INT(WSAAPI * LPNSPGETSERVICECLASSINFO) (_In_ LPGUID lpProviderId, _In_ LPDWORD lpdwBufSize, _In_ LPWSASERVICECLASSINFOW lpServiceClassInfo)

Definition at line 549 of file ws2spi.h.

◆ LPNSPINSTALLSERVICECLASS

typedef INT(WSAAPI * LPNSPINSTALLSERVICECLASS) (_In_ LPGUID lpProviderId, _In_ LPWSASERVICECLASSINFOW lpServiceClassInfo)

Definition at line 539 of file ws2spi.h.

◆ LPNSPLOOKUPSERVICEBEGIN

typedef INT(WSAAPI * LPNSPLOOKUPSERVICEBEGIN) (_In_ LPGUID lpProviderId, _In_ LPWSAQUERYSETW lpqsRestrictions, _In_ LPWSASERVICECLASSINFOW lpServiceClassInfo, _In_ DWORD dwControlFlags, _Out_ LPHANDLE lphLookup)

Definition at line 498 of file ws2spi.h.

◆ LPNSPLOOKUPSERVICEEND

typedef INT(WSAAPI * LPNSPLOOKUPSERVICEEND) (_In_ HANDLE hLookup)

Definition at line 527 of file ws2spi.h.

◆ LPNSPLOOKUPSERVICENEXT

typedef INT(WSAAPI * LPNSPLOOKUPSERVICENEXT) (_In_ HANDLE hLookup, _In_ DWORD dwControlFlags, _Inout_ LPDWORD lpdwBufferLength, _Out_writes_bytes_to_(*lpdwBufferLength, *lpdwBufferLength) LPWSAQUERYSETW lpqsResults)

Definition at line 506 of file ws2spi.h.

◆ LPNSPREMOVESERVICECLASS

typedef INT(WSAAPI * LPNSPREMOVESERVICECLASS) (_In_ LPGUID lpProviderId, _In_ LPGUID lpServiceClassId)

Definition at line 544 of file ws2spi.h.

◆ LPNSPSETSERVICE

typedef INT(WSAAPI * LPNSPSETSERVICE) (_In_ LPGUID lpProviderId, _In_ LPWSASERVICECLASSINFOW lpServiceClassInfo, _In_ LPWSAQUERYSETW lpqsRegInfo, _In_ WSAESETSERVICEOP essOperation, _In_ DWORD dwControlFlags)

Definition at line 531 of file ws2spi.h.

◆ LPNSPSTARTUP

typedef _Must_inspect_result_ INT(WSAAPI * LPNSPSTARTUP) (_In_ LPGUID lpProviderId, _Inout_ LPNSP_ROUTINE lpnspRoutines)

Definition at line 671 of file ws2spi.h.

◆ LPNSPV2_ROUTINE

◆ LPNSPV2CLEANUP

typedef INT(WSAAPI * LPNSPV2CLEANUP) (_In_ LPGUID lpProviderId, _In_ LPVOID pvClientSessionArg)

Definition at line 562 of file ws2spi.h.

◆ LPNSPV2CLIENTSESSIONRUNDOWN

typedef VOID(WSAAPI * LPNSPV2CLIENTSESSIONRUNDOWN) (_In_ LPGUID lpProviderId, _In_ LPVOID pvClientSessionArg)

Definition at line 596 of file ws2spi.h.

◆ LPNSPV2LOOKUPSERVICEBEGIN

typedef INT(WSAAPI * LPNSPV2LOOKUPSERVICEBEGIN) (_In_ LPGUID lpProviderId, _In_ LPWSAQUERYSET2W lpqsRestrictions, _In_ DWORD dwControlFlags, _In_ LPVOID lpvClientSessionArg, _Out_ LPHANDLE lphLookup)

Definition at line 567 of file ws2spi.h.

◆ LPNSPV2LOOKUPSERVICEEND

typedef INT(WSAAPI * LPNSPV2LOOKUPSERVICEEND) (_In_ HANDLE hLookup)

Definition at line 583 of file ws2spi.h.

◆ LPNSPV2LOOKUPSERVICENEXTEX

typedef VOID(WSAAPI * LPNSPV2LOOKUPSERVICENEXTEX) (_In_ HANDLE hAsyncCall, _In_ HANDLE hLookup, _In_ DWORD dwControlFlags, _In_ LPDWORD lpdwBufferLength, _Out_ LPWSAQUERYSET2W lpqsResults)

Definition at line 575 of file ws2spi.h.

◆ LPNSPV2SETSERVICEEX

typedef VOID(WSAAPI * LPNSPV2SETSERVICEEX) (_In_ HANDLE hAsyncCall, _In_ LPGUID lpProviderId, _In_ LPWSAQUERYSET2W lpqsRegInfo, _In_ WSAESETSERVICEOP essOperation, _In_ DWORD dwControlFlags, _In_ LPVOID lpvClientSessionArg)

Definition at line 587 of file ws2spi.h.

◆ LPNSPV2STARTUP

typedef _Must_inspect_result_ INT(WSAAPI * LPNSPV2STARTUP) (_In_ LPGUID lpProviderId, _Outptr_ LPVOID *ppvClientSessionArg)

Definition at line 557 of file ws2spi.h.

◆ LPWPUCLOSEEVENT

typedef BOOL(WSPAPI * LPWPUCLOSEEVENT) (_In_ WSAEVENT hEvent, _Out_ LPINT lpErrno)

Definition at line 321 of file ws2spi.h.

◆ LPWPUCLOSESOCKETHANDLE

typedef int(WSPAPI * LPWPUCLOSESOCKETHANDLE) (_In_ SOCKET s, _Out_ LPINT lpErrno)

Definition at line 326 of file ws2spi.h.

◆ LPWPUCLOSETHREAD

typedef int(WSPAPI * LPWPUCLOSETHREAD) (_In_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)

Definition at line 403 of file ws2spi.h.

◆ LPWPUCOMPLETEOVERLAPPEDREQUEST

typedef int(WSPAPI * LPWPUCOMPLETEOVERLAPPEDREQUEST) (_In_ SOCKET s, _Inout_ LPWSAOVERLAPPED lpOverlapped, _In_ DWORD dwError, _In_ DWORD cbTransferred, _Out_ LPINT lpErrno)

Definition at line 408 of file ws2spi.h.

◆ LPWPUCREATEEVENT

typedef WSAEVENT(WSPAPI * LPWPUCREATEEVENT) (_Out_ LPINT lpErrno)

Definition at line 331 of file ws2spi.h.

◆ LPWPUCREATESOCKETHANDLE

typedef _Must_inspect_result_ SOCKET(WSPAPI * LPWPUCREATESOCKETHANDLE) (_In_ DWORD dwCatalogEntryId, _In_ DWORD_PTR dwContext, _Out_ LPINT lpErrno)

Definition at line 337 of file ws2spi.h.

◆ LPWPUFDISSET

typedef int(WSPAPI * LPWPUFDISSET) (_In_ SOCKET s, _In_ fd_set FAR *fdset)

Definition at line 343 of file ws2spi.h.

◆ LPWPUGETPROVIDERPATH

typedef int(WSPAPI * LPWPUGETPROVIDERPATH) (_In_ LPGUID lpProviderId, _Out_writes_(*lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath, _Inout_ LPINT lpProviderDllPathLen, _Out_ LPINT lpErrno)

Definition at line 348 of file ws2spi.h.

◆ LPWPUMODIFYIFSHANDLE

typedef SOCKET(WSPAPI * LPWPUMODIFYIFSHANDLE) (_In_ DWORD dwCatalogEntryId, _In_ SOCKET ProposedHandle, _Out_ LPINT lpErrno)

Definition at line 355 of file ws2spi.h.

◆ LPWPUOPENCURRENTTHREAD

typedef int(WSPAPI * LPWPUOPENCURRENTTHREAD) (_Out_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)

Definition at line 398 of file ws2spi.h.

◆ LPWPUPOSTMESSAGE

typedef BOOL(WSPAPI * LPWPUPOSTMESSAGE) (_In_ HWND hWnd, _In_ UINT Msg, _In_ WPARAM wParam, _In_ LPARAM lParam)

Definition at line 361 of file ws2spi.h.

◆ LPWPUQUERYBLOCKINGCALLBACK

typedef int(WSPAPI * LPWPUQUERYBLOCKINGCALLBACK) (_In_ DWORD dwCatalogEntryId, _Out_ LPBLOCKINGCALLBACK FAR *lplpfnCallback, _Out_ PDWORD_PTR lpdwContext, _Out_ LPINT lpErrno)

Definition at line 368 of file ws2spi.h.

◆ LPWPUQUERYSOCKETHANDLECONTEXT

typedef int(WSPAPI * LPWPUQUERYSOCKETHANDLECONTEXT) (_In_ SOCKET s, _Out_ PDWORD_PTR lpContext, _Out_ LPINT lpErrno)

Definition at line 375 of file ws2spi.h.

◆ LPWPUQUEUEAPC

typedef int(WSPAPI * LPWPUQUEUEAPC) (_In_ LPWSATHREADID lpThreadId, _In_ LPWSAUSERAPC lpfnUserApc, _In_ DWORD_PTR dwContext, _Out_ LPINT lpErrno)

Definition at line 381 of file ws2spi.h.

◆ LPWPURESETEVENT

typedef BOOL(WSPAPI * LPWPURESETEVENT) (_In_ WSAEVENT hEvent, _Out_ LPINT lpErrno)

Definition at line 388 of file ws2spi.h.

◆ LPWPUSETEVENT

typedef BOOL(WSPAPI * LPWPUSETEVENT) (_In_ WSAEVENT hEvent, _Out_ LPINT lpErrno)

Definition at line 393 of file ws2spi.h.

◆ LPWSATHREADID

◆ LPWSCDEINSTALLPROVIDER

typedef int(WSPAPI * LPWSCDEINSTALLPROVIDER) (_In_ LPGUID lpProviderId, _Out_ LPINT lpErrno)

Definition at line 423 of file ws2spi.h.

◆ LPWSCENABLENSPROVIDER

typedef INT(WSPAPI * LPWSCENABLENSPROVIDER) (_In_ LPGUID lpProviderId, _In_ BOOL fEnable)

Definition at line 455 of file ws2spi.h.

◆ LPWSCENUMPROTOCOLS

typedef int(WSPAPI * LPWSCENUMPROTOCOLS) (_In_opt_ LPINT lpiProtocols, _Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferlength) LPWSAPROTOCOL_INFOW lpProtocolBuffer, _Inout_ LPDWORD lpdwBufferLength, _Out_ LPINT lpErrno)

Definition at line 416 of file ws2spi.h.

◆ LPWSCGETPROVIDERPATH

typedef int(WSPAPI * LPWSCGETPROVIDERPATH) (_In_ LPGUID lpProviderId, _Out_writes_to_(*lpProviderDllPathLen, *lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath, _Inout_ LPINT lpProviderDllPathLen, _Out_ LPINT lpErrno)

Definition at line 436 of file ws2spi.h.

◆ LPWSCINSTALLNAMESPACE

typedef INT(WSPAPI * LPWSCINSTALLNAMESPACE) (_In_ LPWSTR lpszIdentifier, _In_ LPWSTR lpszPathName, _In_ DWORD dwNameSpace, _In_ DWORD dwVersion, _In_ LPGUID lpProviderId)

Definition at line 443 of file ws2spi.h.

◆ LPWSCINSTALLPROVIDER

typedef int(WSPAPI * LPWSCINSTALLPROVIDER) (_In_ LPGUID lpProviderId, _In_z_ const WCHAR FAR *lpszProviderDllPath, _In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList, _In_ DWORD dwNumberOfEntries, _Out_ LPINT lpErrno)

Definition at line 428 of file ws2spi.h.

◆ LPWSCINSTALLQOSTEMPLATE

typedef int(WSPAPI * LPWSCINSTALLQOSTEMPLATE) (_In_ const LPGUID Guid, _In_ LPWSABUF QosName, _In_ LPQOS Qos)

Definition at line 847 of file ws2spi.h.

◆ LPWSCREMOVEQOSTEMPLATE

typedef int(WSPAPI * LPWSCREMOVEQOSTEMPLATE) (_In_ const LPGUID Guid, _In_ LPWSABUF QosName)

Definition at line 859 of file ws2spi.h.

◆ LPWSCUNINSTALLNAMESPACE

typedef INT(WSPAPI * LPWSCUNINSTALLNAMESPACE) (_In_ LPGUID lpProviderId)

Definition at line 451 of file ws2spi.h.

◆ LPWSPACCEPT

typedef _Must_inspect_result_ SOCKET(WSPAPI * LPWSPACCEPT) (_In_ SOCKET s, _Out_writes_bytes_to_opt_(*addrlen, *addrlen) struct sockaddr FAR *addr, _Inout_opt_ LPINT addrlen, _In_opt_ LPCONDITIONPROC lpfnCondition, _In_opt_ DWORD_PTR dwCallbackData, _Out_ LPINT lpErrno)

Definition at line 59 of file ws2spi.h.

◆ LPWSPADDRESSTOSTRING

typedef INT(WSPAPI * LPWSPADDRESSTOSTRING) (_In_reads_bytes_(dwAddressLength) LPSOCKADDR lpsaAddress, _In_ DWORD dwAddressLength, _In_opt_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _Out_writes_to_(*lpdwAddressStringLength, *lpdwAddressStringLength) LPWSTR lpszAddressString, _Inout_ LPDWORD lpdwAddressStringLength, _Out_ LPINT lpErrno)

Definition at line 72 of file ws2spi.h.

◆ LPWSPASYNCSELECT

typedef int(WSPAPI * LPWSPASYNCSELECT) (_In_ SOCKET s, _In_ HWND hWnd, _In_ unsigned int wMsg, _In_ long lEvent, _Out_ LPINT lpErrno)

Definition at line 81 of file ws2spi.h.

◆ LPWSPBIND

Definition at line 89 of file ws2spi.h.

◆ LPWSPCANCELBLOCKINGCALL

typedef int(WSPAPI * LPWSPCANCELBLOCKINGCALL) (_Out_ LPINT lpErrno)

Definition at line 96 of file ws2spi.h.

◆ LPWSPCLEANUP

typedef int(WSPAPI * LPWSPCLEANUP) (_Out_ LPINT lpErrno)

Definition at line 100 of file ws2spi.h.

◆ LPWSPCLOSESOCKET

typedef int(WSPAPI * LPWSPCLOSESOCKET) (_In_ SOCKET s, _Out_ LPINT lpErrno)

Definition at line 104 of file ws2spi.h.

◆ LPWSPCONNECT

typedef int(WSPAPI * LPWSPCONNECT) (_In_ SOCKET s, _In_reads_bytes_(namelen) const struct sockaddr FAR *name, _In_ int namelen, _In_opt_ LPWSABUF lpCallerData, _Out_opt_ LPWSABUF lpCalleeData, _In_opt_ LPQOS lpSQOS, _In_opt_ LPQOS lpGQOS, _Out_ LPINT lpErrno)

Definition at line 109 of file ws2spi.h.

◆ LPWSPDATA

◆ LPWSPDUPLICATESOCKET

typedef int(WSPAPI * LPWSPDUPLICATESOCKET) (_In_ SOCKET s, _In_ DWORD dwProcessId, _Out_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _Out_ LPINT lpErrno)

Definition at line 120 of file ws2spi.h.

◆ LPWSPENUMNETWORKEVENTS

typedef int(WSPAPI * LPWSPENUMNETWORKEVENTS) (_In_ SOCKET s, _In_ WSAEVENT hEventObject, _Out_ LPWSANETWORKEVENTS lpNetworkEvents, _Out_ LPINT lpErrno)

Definition at line 127 of file ws2spi.h.

◆ LPWSPEVENTSELECT

typedef int(WSPAPI * LPWSPEVENTSELECT) (_In_ SOCKET s, _In_opt_ WSAEVENT hEventObject, _In_ long lNetworkEvents, _Out_ LPINT lpErrno)

Definition at line 134 of file ws2spi.h.

◆ LPWSPGETOVERLAPPEDRESULT

typedef BOOL(WSPAPI * LPWSPGETOVERLAPPEDRESULT) (_In_ SOCKET s, _In_ LPWSAOVERLAPPED lpOverlapped, _Out_ LPDWORD lpcbTransfer, _In_ BOOL fWait, _Out_ LPDWORD lpdwFlags, _Out_ LPINT lpErrno)

Definition at line 141 of file ws2spi.h.

◆ LPWSPGETPEERNAME

Definition at line 150 of file ws2spi.h.

◆ LPWSPGETQOSBYNAME

typedef BOOL(WSPAPI * LPWSPGETQOSBYNAME) (_In_ SOCKET s, _In_ LPWSABUF lpQOSName, _Out_ LPQOS lpQOS, _Out_ LPINT lpErrno)

Definition at line 173 of file ws2spi.h.

◆ LPWSPGETSOCKNAME

Definition at line 157 of file ws2spi.h.

◆ LPWSPGETSOCKOPT

typedef int(WSPAPI * LPWSPGETSOCKOPT) (_In_ SOCKET s, _In_ int level, _In_ int optname, _Out_writes_bytes_(*optlen) char FAR *optval, _Inout_ LPINT optlen, _Out_ LPINT lpErrno)

Definition at line 164 of file ws2spi.h.

◆ LPWSPIOCTL

typedef int(WSPAPI * LPWSPIOCTL) (_In_ SOCKET s, _In_ DWORD dwIoControlCode, _In_reads_bytes_opt_(cbInBuffer) LPVOID lpvInBuffer, _In_ DWORD cbInBuffer, _Out_writes_bytes_to_opt_(cbOutBuffer, *lpcbBytesReturned) LPVOID lpvOutBuffer, _In_ DWORD cbOutBuffer, _Out_ LPDWORD lpcbBytesReturned, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)

Definition at line 180 of file ws2spi.h.

◆ LPWSPJOINLEAF

typedef SOCKET(WSPAPI * LPWSPJOINLEAF) (_In_ SOCKET s, _In_reads_bytes_(namelen) const struct sockaddr FAR *name, _In_ int namelen, _In_opt_ LPWSABUF lpCallerData, _Out_opt_ LPWSABUF lpCalleeData, _In_opt_ LPQOS lpSQOS, _In_opt_ LPQOS lpGQOS, _In_ DWORD dwFlags, _Out_ LPINT lpErrno)

Definition at line 194 of file ws2spi.h.

◆ LPWSPLISTEN

typedef int(WSPAPI * LPWSPLISTEN) (_In_ SOCKET s, _In_ int backlog, _Out_ LPINT lpErrno)

Definition at line 206 of file ws2spi.h.

◆ LPWSPPROC_TABLE

◆ LPWSPRECV

typedef int(WSPAPI * LPWSPRECV) (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesRecvd, _Inout_ LPDWORD lpFlags, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _In_ LPINT lpErrno)

Definition at line 212 of file ws2spi.h.

◆ LPWSPRECVDISCONNECT

typedef int(WSPAPI * LPWSPRECVDISCONNECT) (_In_ SOCKET s, _In_opt_ LPWSABUF lpInboundDisconnectData, _Out_ LPINT lpErrno)

Definition at line 224 of file ws2spi.h.

◆ LPWSPRECVFROM

typedef int(WSPAPI * LPWSPRECVFROM) (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesRecvd, _Inout_ LPDWORD lpFlags, _Out_writes_bytes_to_opt_(*lpFromlen, *lpFromlen) struct sockaddr FAR *lpFrom, _Inout_opt_ LPINT lpFromlen, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)

Definition at line 230 of file ws2spi.h.

◆ LPWSPSELECT

typedef int(WSPAPI * LPWSPSELECT) (_In_ int nfds, _Inout_opt_ fd_set FAR *readfds, _Inout_opt_ fd_set FAR *writefds, _Inout_opt_ fd_set FAR *exceptfds, _In_opt_ const struct timeval FAR *timeout, _Out_ LPINT lpErrno)

Definition at line 244 of file ws2spi.h.

◆ LPWSPSEND

typedef int(WSPAPI * LPWSPSEND) (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesSent, _In_ DWORD dwFlags, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)

Definition at line 253 of file ws2spi.h.

◆ LPWSPSENDDISCONNECT

typedef int(WSPAPI * LPWSPSENDDISCONNECT) (_In_ SOCKET s, _In_opt_ LPWSABUF lpOutboundDisconnectData, _Out_ LPINT lpErrno)

Definition at line 265 of file ws2spi.h.

◆ LPWSPSENDTO

typedef int(WSPAPI * LPWSPSENDTO) (_In_ SOCKET s, _In_reads_(dwBufferCount) LPWSABUF lpBuffers, _In_ DWORD dwBufferCount, _Out_opt_ LPDWORD lpNumberOfBytesSent, _In_ DWORD dwFlags, _In_reads_bytes_opt_(iTolen) const struct sockaddr FAR *lpTo, _In_ int iTolen, _Inout_opt_ LPWSAOVERLAPPED lpOverlapped, _In_opt_ LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, _In_opt_ LPWSATHREADID lpThreadId, _Out_ LPINT lpErrno)

Definition at line 271 of file ws2spi.h.

◆ LPWSPSETSOCKOPT

typedef int(WSPAPI * LPWSPSETSOCKOPT) (_In_ SOCKET s, _In_ int level, _In_ int optname, _In_reads_bytes_opt_(optlen) const char FAR *optval, _In_ int optlen, _Out_ LPINT lpErrno)

Definition at line 285 of file ws2spi.h.

◆ LPWSPSHUTDOWN

typedef int(WSPAPI * LPWSPSHUTDOWN) (_In_ SOCKET s, _In_ int how, _Out_ LPINT lpErrno)

Definition at line 294 of file ws2spi.h.

◆ LPWSPSOCKET

Definition at line 302 of file ws2spi.h.

◆ LPWSPSTARTUP

typedef _Must_inspect_result_ int(WSPAPI * LPWSPSTARTUP) (_In_ WORD wVersionRequested, _In_ LPWSPDATA lpWSPData, _In_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _In_ WSPUPCALLTABLE UpcallTable, _Out_ LPWSPPROC_TABLE lpProcTable)

Definition at line 622 of file ws2spi.h.

◆ LPWSPSTRINGTOADDRESS

typedef INT(WSPAPI * LPWSPSTRINGTOADDRESS) (_In_ LPWSTR AddressString, _In_ INT AddressFamily, _In_opt_ LPWSAPROTOCOL_INFOW lpProtocolInfo, _Out_writes_bytes_to_(*lpAddressLength, *lpAddressLength) LPSOCKADDR lpAddress, _Inout_ LPINT lpAddressLength, _Out_ LPINT lpErrno)

Definition at line 312 of file ws2spi.h.

◆ LPWSPUPCALLTABLE

◆ NSP_ROUTINE

◆ NSPV2_ROUTINE

◆ PCNSPV2_ROUTINE

Definition at line 687 of file ws2spi.h.

◆ PNSP_ROUTINE

◆ PNSPV2_ROUTINE

◆ WSATHREADID

◆ WSPDATA

◆ WSPPROC_TABLE

◆ WSPUPCALLTABLE

Function Documentation

◆ BOOL()

typedef BOOL ( CALLBACK FAR LPBLOCKINGCALLBACK)

◆ NSPStartup()

_Must_inspect_result_ INT WSAAPI NSPStartup ( _In_ LPGUID  lpProviderId,
_Inout_ LPNSP_ROUTINE  lpnspRoutines 
)

◆ VOID()

typedef VOID ( CALLBACK FAR LPWSAUSERAPC)

◆ WPUCloseEvent()

BOOL WSPAPI WPUCloseEvent ( _In_ WSAEVENT  hEvent,
_Out_ LPINT  lpErrno 
)

◆ WPUCloseSocketHandle()

int WSPAPI WPUCloseSocketHandle ( _In_ SOCKET  s,
_Out_ LPINT  lpErrno 
)

◆ WPUCompleteOverlappedRequest()

int WSPAPI WPUCompleteOverlappedRequest ( _In_ SOCKET  s,
_Inout_ LPWSAOVERLAPPED  lpOverlapped,
_In_ DWORD  dwError,
_In_ DWORD  cbTransferred,
_Out_ LPINT  lpErrno 
)

◆ WPUCreateEvent()

WSAEVENT WSPAPI WPUCreateEvent ( _Out_ LPINT  lpErrno)

◆ WPUCreateSocketHandle()

SOCKET WSPAPI WPUCreateSocketHandle ( _In_ DWORD  dwCatalogEntryId,
_In_ DWORD_PTR  dwContext,
_Out_ LPINT  lpErrno 
)

◆ WPUFDIsSet()

int WSPAPI WPUFDIsSet ( _In_ SOCKET  s,
_In_ fd_set FAR fdset 
)

◆ WPUGetProviderPath()

int WSPAPI WPUGetProviderPath ( _In_ LPGUID  lpProviderId,
_Out_writes_ *lpProviderDllPathLen WCHAR FAR lpszProviderDllPath,
_Inout_ LPINT  lpProviderDllPathLen,
_Out_ LPINT  lpErrno 
)

◆ WPUModifyIFSHandle()

SOCKET WSPAPI WPUModifyIFSHandle ( _In_ DWORD  dwCatalogEntryId,
_In_ SOCKET  ProposedHandle,
_Out_ LPINT  lpErrno 
)

◆ WPUPostMessage()

BOOL WSPAPI WPUPostMessage ( _In_ HWND  hWnd,
_In_ UINT  Msg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

◆ WPUQueryBlockingCallback()

int WSPAPI WPUQueryBlockingCallback ( _In_ DWORD  dwCatalogEntryId,
_Out_ LPBLOCKINGCALLBACK FAR lplpfnCallback,
_Out_ PDWORD_PTR  lpdwContext,
_Out_ LPINT  lpErrno 
)

◆ WPUQuerySocketHandleContext()

int WSPAPI WPUQuerySocketHandleContext ( _In_ SOCKET  s,
_Out_ PDWORD_PTR  lpContext,
_Out_ LPINT  lpErrno 
)

◆ WPUQueueApc()

int WSPAPI WPUQueueApc ( _In_ LPWSATHREADID  lpThreadId,
_In_ LPWSAUSERAPC  lpfnUserApc,
_In_ DWORD_PTR  dwContext,
_Out_ LPINT  lpErrno 
)

◆ WPUResetEvent()

BOOL WSPAPI WPUResetEvent ( _In_ WSAEVENT  hEvent,
_Out_ LPINT  lpErrno 
)

◆ WPUSetEvent()

BOOL WSPAPI WPUSetEvent ( _In_ WSAEVENT  hEvent,
_Out_ LPINT  lpErrno 
)

◆ WSCDeinstallProvider()

int WSPAPI WSCDeinstallProvider ( _In_ LPGUID  lpProviderId,
_Out_ LPINT  lpErrno 
)

◆ WSCEnableNSProvider()

INT WSPAPI WSCEnableNSProvider ( _In_ LPGUID  lpProviderId,
_In_ BOOL  fEnable 
)

◆ WSCEnumProtocols()

int WSPAPI WSCEnumProtocols ( _In_opt_ LPINT  lpiProtocols,
_Out_writes_bytes_to_opt_ *, *lpdwBufferLength LPWSAPROTOCOL_INFOW  lpProtocolBuffer,
_Inout_ LPDWORD  lpdwBufferLength,
_Out_ LPINT  lpErrno 
)

◆ WSCGetProviderPath()

int WSPAPI WSCGetProviderPath ( _In_ LPGUID  lpProviderId,
_Out_writes_to_ *, *lpProviderDllPathLen WCHAR FAR lpszProviderDllPath,
_Inout_ LPINT  lpProviderDllPathLen,
_Out_ LPINT  lpErrno 
)

◆ WSCInstallNameSpace()

INT WSPAPI WSCInstallNameSpace ( _In_ LPWSTR  lpszIdentifier,
_In_ LPWSTR  lpszPathName,
_In_ DWORD  dwNameSpace,
_In_ DWORD  dwVersion,
_In_ LPGUID  lpProviderId 
)

◆ WSCInstallProvider()

int WSPAPI WSCInstallProvider ( _In_ LPGUID  lpProviderId,
_In_z_ const WCHAR FAR lpszProviderDllPath,
_In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW  lpProtocolInfoList,
_In_ DWORD  dwNumberOfEntries,
_Out_ LPINT  lpErrno 
)

◆ WSCInstallQOSTemplate()

int WSPAPI WSCInstallQOSTemplate ( _In_ const LPGUID  Guid,
_In_ LPWSABUF  QosName,
_In_ LPQOS  Qos 
)

◆ WSCRemoveQOSTemplate()

int WSPAPI WSCRemoveQOSTemplate ( _In_ const LPGUID  Guid,
_In_ LPWSABUF  QosName 
)

◆ WSCUnInstallNameSpace()

INT WSPAPI WSCUnInstallNameSpace ( _In_ LPGUID  lpProviderId)

◆ WSPStartup()

_Must_inspect_result_ int WSPAPI WSPStartup ( _In_ WORD  wVersionRequested,
_In_ LPWSPDATA  lpWSPData,
_In_ LPWSAPROTOCOL_INFOW  lpProtocolInfo,
_In_ WSPUPCALLTABLE  UpcallTable,
_Out_ LPWSPPROC_TABLE  lpProcTable 
)

Definition at line 2985 of file dllmain.c.

2991 {
2992  NTSTATUS Status;
2993 
2994  if (((LOBYTE(wVersionRequested) == 2) && (HIBYTE(wVersionRequested) < 2)) ||
2995  (LOBYTE(wVersionRequested) < 2))
2996  {
2997  ERR("WSPStartup NOT SUPPORTED for version 0x%X\n", wVersionRequested);
2998  return WSAVERNOTSUPPORTED;
2999  }
3000  else
3001  Status = NO_ERROR;
3002  /* FIXME: Enable all cases of WSPStartup status */
3003  Upcalls = UpcallTable;
3004 
3005  if (Status == NO_ERROR)
3006  {
3007  lpProcTable->lpWSPAccept = WSPAccept;
3008  lpProcTable->lpWSPAddressToString = WSPAddressToString;
3009  lpProcTable->lpWSPAsyncSelect = WSPAsyncSelect;
3010  lpProcTable->lpWSPBind = WSPBind;
3011  lpProcTable->lpWSPCancelBlockingCall = WSPCancelBlockingCall;
3012  lpProcTable->lpWSPCleanup = WSPCleanup;
3013  lpProcTable->lpWSPCloseSocket = WSPCloseSocket;
3014  lpProcTable->lpWSPConnect = WSPConnect;
3015  lpProcTable->lpWSPDuplicateSocket = WSPDuplicateSocket;
3016  lpProcTable->lpWSPEnumNetworkEvents = WSPEnumNetworkEvents;
3017  lpProcTable->lpWSPEventSelect = WSPEventSelect;
3018  lpProcTable->lpWSPGetOverlappedResult = WSPGetOverlappedResult;
3019  lpProcTable->lpWSPGetPeerName = WSPGetPeerName;
3020  lpProcTable->lpWSPGetSockName = WSPGetSockName;
3021  lpProcTable->lpWSPGetSockOpt = WSPGetSockOpt;
3022  lpProcTable->lpWSPGetQOSByName = WSPGetQOSByName;
3023  lpProcTable->lpWSPIoctl = WSPIoctl;
3024  lpProcTable->lpWSPJoinLeaf = WSPJoinLeaf;
3025  lpProcTable->lpWSPListen = WSPListen;
3026  lpProcTable->lpWSPRecv = WSPRecv;
3027  lpProcTable->lpWSPRecvDisconnect = WSPRecvDisconnect;
3028  lpProcTable->lpWSPRecvFrom = WSPRecvFrom;
3029  lpProcTable->lpWSPSelect = WSPSelect;
3030  lpProcTable->lpWSPSend = WSPSend;
3031  lpProcTable->lpWSPSendDisconnect = WSPSendDisconnect;
3032  lpProcTable->lpWSPSendTo = WSPSendTo;
3033  lpProcTable->lpWSPSetSockOpt = WSPSetSockOpt;
3034  lpProcTable->lpWSPShutdown = WSPShutdown;
3035  lpProcTable->lpWSPSocket = WSPSocket;
3036  lpProcTable->lpWSPStringToAddress = WSPStringToAddress;
3037  lpWSPData->wVersion = MAKEWORD(2, 2);
3038  lpWSPData->wHighVersion = MAKEWORD(2, 2);
3039  /* Save CatalogEntryId for all upcalls */
3040  CatalogEntryId = lpProtocolInfo->dwCatalogEntryId;
3041  }
3042 
3043  TRACE("Status (%d).\n", Status);
3044  return Status;
3045 }
INT WSPAPI WSPCloseSocket(IN SOCKET Handle, OUT LPINT lpErrno)
Definition: dllmain.c:623
INT WSPAPI WSPRecvDisconnect(IN SOCKET s, OUT LPWSABUF lpInboundDisconnectData, OUT LPINT lpErrno)
Definition: sndrcv.c:919
DWORD CatalogEntryId
Definition: dllmain.c:21
INT WSPAPI WSPEnumNetworkEvents(IN SOCKET Handle, IN WSAEVENT hEventObject, OUT LPWSANETWORKEVENTS lpNetworkEvents, OUT LPINT lpErrno)
Definition: event.c:133
#define LOBYTE(W)
Definition: jmemdos.c:487
#define MAKEWORD(a, b)
Definition: typedefs.h:247
BOOL WSPAPI WSPGetOverlappedResult(IN SOCKET Handle, IN LPWSAOVERLAPPED lpOverlapped, OUT LPDWORD lpdwBytes, IN BOOL fWait, OUT LPDWORD lpdwFlags, OUT LPINT lpErrno)
Definition: sndrcv.c:96
LONG NTSTATUS
Definition: precomp.h:26
#define HIBYTE(W)
Definition: jmemdos.c:486
INT WSPAPI WSPAsyncSelect(IN SOCKET Handle, IN HWND hWnd, IN UINT wMsg, IN LONG lEvent, OUT LPINT lpErrno)
Definition: sndrcv.c:17
BOOL WSPAPI WSPGetQOSByName(IN SOCKET s, IN OUT LPWSABUF lpQOSName, OUT LPQOS lpQOS, OUT LPINT lpErrno)
Definition: stubs.c:26
#define NO_ERROR
Definition: dderror.h:5
#define WSAVERNOTSUPPORTED
Definition: winerror.h:1986
INT WSPAPI WSPCancelBlockingCall(OUT LPINT lpErrno)
Definition: stubs.c:15
INT WSPAPI WSPCleanup(OUT LPINT lpErrno)
Definition: dllmain.c:3234
int WSPAPI WSPRecv(SOCKET Handle, LPWSABUF lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesRead, LPDWORD ReceiveFlags, LPWSAOVERLAPPED lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, LPWSATHREADID lpThreadId, LPINT lpErrno)
Definition: sndrcv.c:157
INT WSPAPI WSPDuplicateSocket(IN SOCKET Handle, IN DWORD dwProcessId, OUT LPWSAPROTOCOL_INFOW lpProtocolInfo, OUT LPINT lpErrno)
Definition: dllmain.c:449
int WSPAPI WSPSendTo(SOCKET Handle, LPWSABUF lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesSent, DWORD iFlags, const struct sockaddr *SocketAddress, int SocketAddressLength, LPWSAOVERLAPPED lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, LPWSATHREADID lpThreadId, LPINT lpErrno)
Definition: sndrcv.c:719
SOCKET WSPAPI WSPJoinLeaf(IN SOCKET s, IN CONST SOCKADDR *name, IN INT namelen, IN LPWSABUF lpCallerData, OUT LPWSABUF lpCalleeData, IN LPQOS lpSQOS, IN LPQOS lpGQOS, IN DWORD dwFlags, OUT LPINT lpErrno)
Definition: stubs.c:40
int WSPAPI WSPListen(SOCKET Handle, int Backlog, LPINT lpErrno)
Definition: dllmain.c:981
#define TRACE(s)
Definition: solgame.cpp:4
INT WSPAPI WSPGetSockName(IN SOCKET Handle, OUT LPSOCKADDR Name, IN OUT LPINT NameLength, OUT LPINT lpErrno)
Definition: dllmain.c:2152
SOCKET WSPAPI WSPSocket(int AddressFamily, int SocketType, int Protocol, LPWSAPROTOCOL_INFOW lpProtocolInfo, GROUP g, DWORD dwFlags, LPINT lpErrno)
Definition: dllmain.c:48
int WSPAPI WSPShutdown(SOCKET Handle, int HowTo, LPINT lpErrno)
Definition: dllmain.c:2072
INT WSPAPI WSPSendDisconnect(IN SOCKET s, IN LPWSABUF lpOutboundDisconnectData, OUT LPINT lpErrno)
Definition: sndrcv.c:931
int WSPAPI WSPEventSelect(IN SOCKET Handle, IN WSAEVENT hEventObject, IN long lNetworkEvents, OUT LPINT lpErrno)
Definition: event.c:17
int WSPAPI WSPSend(SOCKET Handle, LPWSABUF lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesSent, DWORD iFlags, LPWSAOVERLAPPED lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, LPWSATHREADID lpThreadId, LPINT lpErrno)
Definition: sndrcv.c:568
int WSPAPI WSPRecvFrom(SOCKET Handle, LPWSABUF lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesRead, LPDWORD ReceiveFlags, struct sockaddr *SocketAddress, int *SocketAddressLength, LPWSAOVERLAPPED lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, LPWSATHREADID lpThreadId, LPINT lpErrno)
Definition: sndrcv.c:351
INT WSPAPI WSPBind(SOCKET Handle, const struct sockaddr *SocketAddress, int SocketAddressLength, LPINT lpErrno)
Definition: dllmain.c:846
_Must_inspect_result_ SOCKET WSPAPI WSPAccept(_In_ SOCKET Handle, _Out_writes_bytes_to_opt_(*addrlen, *addrlen) struct sockaddr FAR *SocketAddress, _Inout_opt_ LPINT SocketAddressLength, _In_opt_ LPCONDITIONPROC lpfnCondition, _In_opt_ DWORD_PTR dwCallbackData, _Out_ LPINT lpErrno)
Definition: dllmain.c:1434
Status
Definition: gdiplustypes.h:24
int WSPAPI WSPSelect(IN int nfds, IN OUT fd_set *readfds OPTIONAL, IN OUT fd_set *writefds OPTIONAL, IN OUT fd_set *exceptfds OPTIONAL, IN const struct timeval *timeout OPTIONAL, OUT LPINT lpErrno)
Definition: dllmain.c:1065
#define ERR(fmt,...)
Definition: debug.h:109
INT WSPAPI WSPGetPeerName(IN SOCKET s, OUT LPSOCKADDR Name, IN OUT LPINT NameLength, OUT LPINT lpErrno)
Definition: dllmain.c:2254
INT WSPAPI WSPIoctl(IN SOCKET Handle, IN DWORD dwIoControlCode, IN LPVOID lpvInBuffer, IN DWORD cbInBuffer, OUT LPVOID lpvOutBuffer, IN DWORD cbOutBuffer, OUT LPDWORD lpcbBytesReturned, IN LPWSAOVERLAPPED lpOverlapped, IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, IN LPWSATHREADID lpThreadId, OUT LPINT lpErrno)
Definition: dllmain.c:2357
WSPUPCALLTABLE Upcalls
Definition: dllmain.c:20
INT WSPAPI WSPGetSockOpt(IN SOCKET Handle, IN INT Level, IN INT OptionName, OUT CHAR FAR *OptionValue, IN OUT LPINT OptionLength, OUT LPINT lpErrno)
Definition: dllmain.c:2600
INT WSPAPI WSPSetSockOpt(IN SOCKET s, IN INT level, IN INT optname, IN CONST CHAR FAR *optval, IN INT optlen, OUT LPINT lpErrno)
Definition: dllmain.c:2776
int WSPAPI WSPConnect(SOCKET Handle, const struct sockaddr *SocketAddress, int SocketAddressLength, LPWSABUF lpCallerData, LPWSABUF lpCalleeData, LPQOS lpSQOS, LPQOS lpGQOS, LPINT lpErrno)
Definition: dllmain.c:1826
INT WSPAPI WSPStringToAddress(IN LPWSTR AddressString, IN INT AddressFamily, IN LPWSAPROTOCOL_INFOW lpProtocolInfo, OUT LPSOCKADDR lpAddress, IN OUT LPINT lpAddressLength, OUT LPINT lpErrno)
Definition: dllmain.c:3110
INT WSPAPI WSPAddressToString(IN LPSOCKADDR lpsaAddress, IN DWORD dwAddressLength, IN LPWSAPROTOCOL_INFOW lpProtocolInfo, OUT LPWSTR lpszAddressString, IN OUT LPDWORD lpdwAddressStringLength, OUT LPINT lpErrno)
Definition: dllmain.c:3050