ReactOS 0.4.16-dev-106-g10b08aa
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 493 of file ws2spi.h.

◆ LPNSPGETSERVICECLASSINFO

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

Definition at line 548 of file ws2spi.h.

◆ LPNSPINSTALLSERVICECLASS

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

Definition at line 538 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 497 of file ws2spi.h.

◆ LPNSPLOOKUPSERVICEEND

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

Definition at line 526 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 505 of file ws2spi.h.

◆ LPNSPREMOVESERVICECLASS

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

Definition at line 543 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 530 of file ws2spi.h.

◆ LPNSPSTARTUP

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

Definition at line 670 of file ws2spi.h.

◆ LPNSPV2_ROUTINE

◆ LPNSPV2CLEANUP

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

Definition at line 561 of file ws2spi.h.

◆ LPNSPV2CLIENTSESSIONRUNDOWN

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

Definition at line 595 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 566 of file ws2spi.h.

◆ LPNSPV2LOOKUPSERVICEEND

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

Definition at line 582 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 574 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 586 of file ws2spi.h.

◆ LPNSPV2STARTUP

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

Definition at line 556 of file ws2spi.h.

◆ LPWPUCLOSEEVENT

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

Definition at line 320 of file ws2spi.h.

◆ LPWPUCLOSESOCKETHANDLE

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

Definition at line 325 of file ws2spi.h.

◆ LPWPUCLOSETHREAD

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

Definition at line 402 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 407 of file ws2spi.h.

◆ LPWPUCREATEEVENT

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

Definition at line 330 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 336 of file ws2spi.h.

◆ LPWPUFDISSET

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

Definition at line 342 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 347 of file ws2spi.h.

◆ LPWPUMODIFYIFSHANDLE

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

Definition at line 354 of file ws2spi.h.

◆ LPWPUOPENCURRENTTHREAD

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

Definition at line 397 of file ws2spi.h.

◆ LPWPUPOSTMESSAGE

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

Definition at line 360 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 367 of file ws2spi.h.

◆ LPWPUQUERYSOCKETHANDLECONTEXT

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

Definition at line 374 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 380 of file ws2spi.h.

◆ LPWPURESETEVENT

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

Definition at line 387 of file ws2spi.h.

◆ LPWPUSETEVENT

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

Definition at line 392 of file ws2spi.h.

◆ LPWSATHREADID

◆ LPWSCDEINSTALLPROVIDER

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

Definition at line 422 of file ws2spi.h.

◆ LPWSCENABLENSPROVIDER

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

Definition at line 454 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 415 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 435 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 442 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 427 of file ws2spi.h.

◆ LPWSCINSTALLQOSTEMPLATE

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

Definition at line 846 of file ws2spi.h.

◆ LPWSCREMOVEQOSTEMPLATE

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

Definition at line 858 of file ws2spi.h.

◆ LPWSCUNINSTALLNAMESPACE

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

Definition at line 450 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 58 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 71 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 80 of file ws2spi.h.

◆ LPWSPBIND

Definition at line 88 of file ws2spi.h.

◆ LPWSPCANCELBLOCKINGCALL

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

Definition at line 95 of file ws2spi.h.

◆ LPWSPCLEANUP

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

Definition at line 99 of file ws2spi.h.

◆ LPWSPCLOSESOCKET

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

Definition at line 103 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 108 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 119 of file ws2spi.h.

◆ LPWSPENUMNETWORKEVENTS

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

Definition at line 126 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 133 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 140 of file ws2spi.h.

◆ LPWSPGETPEERNAME

Definition at line 149 of file ws2spi.h.

◆ LPWSPGETQOSBYNAME

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

Definition at line 172 of file ws2spi.h.

◆ LPWSPGETSOCKNAME

Definition at line 156 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 163 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 179 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 193 of file ws2spi.h.

◆ LPWSPLISTEN

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

Definition at line 205 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 211 of file ws2spi.h.

◆ LPWSPRECVDISCONNECT

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

Definition at line 223 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 229 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 243 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 252 of file ws2spi.h.

◆ LPWSPSENDDISCONNECT

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

Definition at line 264 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 270 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 284 of file ws2spi.h.

◆ LPWSPSHUTDOWN

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

Definition at line 293 of file ws2spi.h.

◆ LPWSPSOCKET

Definition at line 301 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 621 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 311 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 2998 of file dllmain.c.

3004{
3006
3007 if (((LOBYTE(wVersionRequested) == 2) && (HIBYTE(wVersionRequested) < 2)) ||
3008 (LOBYTE(wVersionRequested) < 2))
3009 {
3010 ERR("WSPStartup NOT SUPPORTED for version 0x%X\n", wVersionRequested);
3011 return WSAVERNOTSUPPORTED;
3012 }
3013 else
3014 Status = NO_ERROR;
3015 /* FIXME: Enable all cases of WSPStartup status */
3016 Upcalls = UpcallTable;
3017
3018 if (Status == NO_ERROR)
3019 {
3020 lpProcTable->lpWSPAccept = WSPAccept;
3021 lpProcTable->lpWSPAddressToString = WSPAddressToString;
3022 lpProcTable->lpWSPAsyncSelect = WSPAsyncSelect;
3023 lpProcTable->lpWSPBind = WSPBind;
3024 lpProcTable->lpWSPCancelBlockingCall = WSPCancelBlockingCall;
3025 lpProcTable->lpWSPCleanup = WSPCleanup;
3026 lpProcTable->lpWSPCloseSocket = WSPCloseSocket;
3027 lpProcTable->lpWSPConnect = WSPConnect;
3028 lpProcTable->lpWSPDuplicateSocket = WSPDuplicateSocket;
3029 lpProcTable->lpWSPEnumNetworkEvents = WSPEnumNetworkEvents;
3030 lpProcTable->lpWSPEventSelect = WSPEventSelect;
3031 lpProcTable->lpWSPGetOverlappedResult = WSPGetOverlappedResult;
3032 lpProcTable->lpWSPGetPeerName = WSPGetPeerName;
3033 lpProcTable->lpWSPGetSockName = WSPGetSockName;
3034 lpProcTable->lpWSPGetSockOpt = WSPGetSockOpt;
3035 lpProcTable->lpWSPGetQOSByName = WSPGetQOSByName;
3036 lpProcTable->lpWSPIoctl = WSPIoctl;
3037 lpProcTable->lpWSPJoinLeaf = WSPJoinLeaf;
3038 lpProcTable->lpWSPListen = WSPListen;
3039 lpProcTable->lpWSPRecv = WSPRecv;
3040 lpProcTable->lpWSPRecvDisconnect = WSPRecvDisconnect;
3041 lpProcTable->lpWSPRecvFrom = WSPRecvFrom;
3042 lpProcTable->lpWSPSelect = WSPSelect;
3043 lpProcTable->lpWSPSend = WSPSend;
3044 lpProcTable->lpWSPSendDisconnect = WSPSendDisconnect;
3045 lpProcTable->lpWSPSendTo = WSPSendTo;
3046 lpProcTable->lpWSPSetSockOpt = WSPSetSockOpt;
3047 lpProcTable->lpWSPShutdown = WSPShutdown;
3048 lpProcTable->lpWSPSocket = WSPSocket;
3049 lpProcTable->lpWSPStringToAddress = WSPStringToAddress;
3050 lpWSPData->wVersion = MAKEWORD(2, 2);
3051 lpWSPData->wHighVersion = MAKEWORD(2, 2);
3052 /* Save CatalogEntryId for all upcalls */
3053 CatalogEntryId = lpProtocolInfo->dwCatalogEntryId;
3054 }
3055
3056 TRACE("Status (%d).\n", Status);
3057 return Status;
3058}
LONG NTSTATUS
Definition: precomp.h:26
#define ERR(fmt,...)
Definition: precomp.h:57
#define NO_ERROR
Definition: dderror.h:5
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:3063
int WSPAPI WSPListen(SOCKET Handle, int Backlog, LPINT lpErrno)
Definition: dllmain.c:981
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:2785
INT WSPAPI WSPCleanup(OUT LPINT lpErrno)
Definition: dllmain.c:3247
int WSPAPI WSPConnect(SOCKET Handle, const struct sockaddr *SocketAddress, int SocketAddressLength, LPWSABUF lpCallerData, LPWSABUF lpCalleeData, LPQOS lpSQOS, LPQOS lpGQOS, LPINT lpErrno)
Definition: dllmain.c:1830
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:2609
INT WSPAPI WSPBind(SOCKET Handle, const struct sockaddr *SocketAddress, int SocketAddressLength, LPINT lpErrno)
Definition: dllmain.c:846
DWORD CatalogEntryId
Definition: dllmain.c:21
INT WSPAPI WSPGetPeerName(IN SOCKET s, OUT LPSOCKADDR Name, IN OUT LPINT NameLength, OUT LPINT lpErrno)
Definition: dllmain.c:2258
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
INT WSPAPI WSPDuplicateSocket(IN SOCKET Handle, IN DWORD dwProcessId, OUT LPWSAPROTOCOL_INFOW lpProtocolInfo, OUT LPINT lpErrno)
Definition: dllmain.c:449
int WSPAPI WSPShutdown(SOCKET Handle, int HowTo, LPINT lpErrno)
Definition: dllmain.c:2076
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:3123
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:2361
INT WSPAPI WSPCloseSocket(IN SOCKET Handle, OUT LPINT lpErrno)
Definition: dllmain.c:623
_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
SOCKET WSPAPI WSPSocket(int AddressFamily, int SocketType, int Protocol, LPWSAPROTOCOL_INFOW lpProtocolInfo, GROUP g, DWORD dwFlags, LPINT lpErrno)
Definition: dllmain.c:48
INT WSPAPI WSPGetSockName(IN SOCKET Handle, OUT LPSOCKADDR Name, IN OUT LPINT NameLength, OUT LPINT lpErrno)
Definition: dllmain.c:2156
WSPUPCALLTABLE Upcalls
Definition: dllmain.c:20
INT WSPAPI WSPEnumNetworkEvents(IN SOCKET Handle, IN WSAEVENT hEventObject, OUT LPWSANETWORKEVENTS lpNetworkEvents, OUT LPINT lpErrno)
Definition: event.c:133
int WSPAPI WSPEventSelect(IN SOCKET Handle, IN WSAEVENT hEventObject, IN long lNetworkEvents, OUT LPINT lpErrno)
Definition: event.c:17
INT WSPAPI WSPCancelBlockingCall(OUT LPINT lpErrno)
Definition: stubs.c:15
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
BOOL WSPAPI WSPGetQOSByName(IN SOCKET s, IN OUT LPWSABUF lpQOSName, OUT LPQOS lpQOS, OUT LPINT lpErrno)
Definition: stubs.c:26
Status
Definition: gdiplustypes.h:25
#define LOBYTE(W)
Definition: jmemdos.c:487
#define HIBYTE(W)
Definition: jmemdos.c:486
INT WSPAPI WSPSendDisconnect(IN SOCKET s, IN LPWSABUF lpOutboundDisconnectData, OUT LPINT lpErrno)
Definition: sndrcv.c:938
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:358
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
INT WSPAPI WSPAsyncSelect(IN SOCKET Handle, IN HWND hWnd, IN UINT wMsg, IN LONG lEvent, OUT LPINT lpErrno)
Definition: sndrcv.c:17
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:726
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:575
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 WSPRecvDisconnect(IN SOCKET s, OUT LPWSABUF lpInboundDisconnectData, OUT LPINT lpErrno)
Definition: sndrcv.c:926
#define TRACE(s)
Definition: solgame.cpp:4
#define MAKEWORD(a, b)
Definition: typedefs.h:248
#define WSAVERNOTSUPPORTED
Definition: winerror.h:1986