2005-05-08 17:44:37 +00:00
|
|
|
/*
|
|
|
|
* ws2spi.h
|
|
|
|
*
|
|
|
|
* Winsock 2 Service Provider interface.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS NOT COPYRIGHTED
|
|
|
|
*
|
|
|
|
* This source code is offered for use in the public domain. You may
|
|
|
|
* use, modify or distribute it freely.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful but
|
|
|
|
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
|
|
|
* DISCLAIMED. This includes but is not limited to warranties of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
*/
|
2013-08-14 16:17:16 +00:00
|
|
|
|
2010-03-30 13:24:23 +00:00
|
|
|
#pragma once
|
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
#define _WS2SPI_H
|
|
|
|
|
2010-03-30 13:24:23 +00:00
|
|
|
#ifndef _WINSOCK2API_
|
2005-05-08 17:44:37 +00:00
|
|
|
#include <winsock2.h>
|
2010-03-30 13:24:23 +00:00
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2010-03-30 13:24:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(_WIN64)
|
|
|
|
#include <pshpack4.h>
|
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
|
|
|
#define WSPDESCRIPTION_LEN 255
|
|
|
|
|
2010-03-30 13:24:23 +00:00
|
|
|
#define WSS_OPERATION_IN_PROGRESS 0x00000103L
|
|
|
|
|
|
|
|
#define WSPAPI WSAAPI
|
2005-05-08 17:44:37 +00:00
|
|
|
|
|
|
|
typedef struct _WSATHREADID {
|
2010-03-30 13:24:23 +00:00
|
|
|
HANDLE ThreadHandle;
|
|
|
|
DWORD_PTR Reserved;
|
2005-05-08 17:44:37 +00:00
|
|
|
} WSATHREADID, FAR *LPWSATHREADID;
|
|
|
|
|
2010-04-07 00:02:57 +00:00
|
|
|
typedef struct WSPData {
|
|
|
|
WORD wVersion;
|
|
|
|
WORD wHighVersion;
|
|
|
|
WCHAR szDescription[WSPDESCRIPTION_LEN+1];
|
|
|
|
} WSPDATA, FAR *LPWSPDATA;
|
2005-05-08 17:44:37 +00:00
|
|
|
|
2010-03-30 13:24:23 +00:00
|
|
|
typedef BOOL
|
|
|
|
(CALLBACK FAR *LPBLOCKINGCALLBACK)(
|
|
|
|
DWORD_PTR dwContext);
|
|
|
|
|
2013-08-14 16:17:16 +00:00
|
|
|
typedef
|
|
|
|
_Must_inspect_result_
|
|
|
|
SOCKET
|
2010-03-30 13:24:23 +00:00
|
|
|
(WSPAPI *LPWSPACCEPT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
2010-04-07 00:02:57 +00:00
|
|
|
typedef VOID
|
|
|
|
(CALLBACK FAR *LPWSAUSERAPC)(
|
|
|
|
DWORD_PTR dwContext);
|
|
|
|
|
2010-03-30 13:24:23 +00:00
|
|
|
typedef INT
|
|
|
|
(WSPAPI *LPWSPADDRESSTOSTRING)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPASYNCSELECT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ HWND hWnd,
|
|
|
|
_In_ unsigned int wMsg,
|
|
|
|
_In_ long lEvent,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPBIND)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_reads_bytes_(namelen) const struct sockaddr FAR *name,
|
|
|
|
_In_ int namelen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPCANCELBLOCKINGCALL)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPCLEANUP)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPCLOSESOCKET)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPCONNECT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPDUPLICATESOCKET)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ DWORD dwProcessId,
|
|
|
|
_Out_ LPWSAPROTOCOL_INFOW lpProtocolInfo,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPENUMNETWORKEVENTS)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ WSAEVENT hEventObject,
|
|
|
|
_Out_ LPWSANETWORKEVENTS lpNetworkEvents,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPEVENTSELECT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_opt_ WSAEVENT hEventObject,
|
|
|
|
_In_ long lNetworkEvents,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef BOOL
|
|
|
|
(WSPAPI *LPWSPGETOVERLAPPEDRESULT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ LPWSAOVERLAPPED lpOverlapped,
|
|
|
|
_Out_ LPDWORD lpcbTransfer,
|
|
|
|
_In_ BOOL fWait,
|
|
|
|
_Out_ LPDWORD lpdwFlags,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPGETPEERNAME)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_Out_writes_bytes_to_(*namelen, *namelen) struct sockaddr FAR *name,
|
|
|
|
_Inout_ LPINT namelen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPGETSOCKNAME)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_Out_writes_bytes_to_(*namelen, *namelen) struct sockaddr FAR *name,
|
|
|
|
_Inout_ LPINT namelen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPGETSOCKOPT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ int level,
|
|
|
|
_In_ int optname,
|
|
|
|
_Out_writes_bytes_(*optlen) char FAR *optval,
|
|
|
|
_Inout_ LPINT optlen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef BOOL
|
|
|
|
(WSPAPI *LPWSPGETQOSBYNAME)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ LPWSABUF lpQOSName,
|
|
|
|
_Out_ LPQOS lpQOS,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPIOCTL)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef SOCKET
|
|
|
|
(WSPAPI *LPWSPJOINLEAF)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPLISTEN)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ int backlog,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPRECV)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPRECVDISCONNECT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_opt_ LPWSABUF lpInboundDisconnectData,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPRECVFROM)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPSELECT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPSEND)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPSENDDISCONNECT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_opt_ LPWSABUF lpOutboundDisconnectData,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPSENDTO)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPSETSOCKOPT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ int level,
|
|
|
|
_In_ int optname,
|
|
|
|
_In_reads_bytes_opt_(optlen) const char FAR *optval,
|
|
|
|
_In_ int optlen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSPSHUTDOWN)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ int how,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
2013-08-14 16:17:16 +00:00
|
|
|
typedef
|
|
|
|
_Must_inspect_result_
|
|
|
|
SOCKET
|
2010-03-30 13:24:23 +00:00
|
|
|
(WSPAPI *LPWSPSOCKET)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ int af,
|
|
|
|
_In_ int type,
|
|
|
|
_In_ int protocol,
|
|
|
|
_In_opt_ LPWSAPROTOCOL_INFOW lpProtocolInfo,
|
|
|
|
_In_ GROUP g,
|
|
|
|
_In_ DWORD dwFlags,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSPAPI *LPWSPSTRINGTOADDRESS)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_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);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef BOOL
|
|
|
|
(WSPAPI *LPWPUCLOSEEVENT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ WSAEVENT hEvent,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWPUCLOSESOCKETHANDLE)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef WSAEVENT
|
|
|
|
(WSPAPI *LPWPUCREATEEVENT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
2013-08-14 16:17:16 +00:00
|
|
|
typedef
|
|
|
|
_Must_inspect_result_
|
|
|
|
SOCKET
|
2010-03-30 13:24:23 +00:00
|
|
|
(WSPAPI *LPWPUCREATESOCKETHANDLE)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ DWORD dwCatalogEntryId,
|
|
|
|
_In_ DWORD_PTR dwContext,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWPUFDISSET)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ fd_set FAR *fdset);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWPUGETPROVIDERPATH)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Out_writes_(*lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_Inout_ LPINT lpProviderDllPathLen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef SOCKET
|
|
|
|
(WSPAPI *LPWPUMODIFYIFSHANDLE)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ DWORD dwCatalogEntryId,
|
|
|
|
_In_ SOCKET ProposedHandle,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef BOOL
|
|
|
|
(WSPAPI *LPWPUPOSTMESSAGE)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ HWND hWnd,
|
|
|
|
_In_ UINT Msg,
|
|
|
|
_In_ WPARAM wParam,
|
|
|
|
_In_ LPARAM lParam);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWPUQUERYBLOCKINGCALLBACK)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ DWORD dwCatalogEntryId,
|
|
|
|
_Out_ LPBLOCKINGCALLBACK FAR *lplpfnCallback,
|
|
|
|
_Out_ PDWORD_PTR lpdwContext,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWPUQUERYSOCKETHANDLECONTEXT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_Out_ PDWORD_PTR lpContext,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWPUQUEUEAPC)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPWSATHREADID lpThreadId,
|
|
|
|
_In_ LPWSAUSERAPC lpfnUserApc,
|
|
|
|
_In_ DWORD_PTR dwContext,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef BOOL
|
|
|
|
(WSPAPI *LPWPURESETEVENT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ WSAEVENT hEvent,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef BOOL
|
|
|
|
(WSPAPI *LPWPUSETEVENT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ WSAEVENT hEvent,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWPUOPENCURRENTTHREAD)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_Out_ LPWSATHREADID lpThreadId,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWPUCLOSETHREAD)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPWSATHREADID lpThreadId,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWPUCOMPLETEOVERLAPPEDREQUEST)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_Inout_ LPWSAOVERLAPPED lpOverlapped,
|
|
|
|
_In_ DWORD dwError,
|
|
|
|
_In_ DWORD cbTransferred,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSCENUMPROTOCOLS)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_opt_ LPINT lpiProtocols,
|
|
|
|
_Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferlength) LPWSAPROTOCOL_INFOW lpProtocolBuffer,
|
|
|
|
_Inout_ LPDWORD lpdwBufferLength,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSCDEINSTALLPROVIDER)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSCINSTALLPROVIDER)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_z_ const WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList,
|
|
|
|
_In_ DWORD dwNumberOfEntries,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSCGETPROVIDERPATH)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Out_writes_to_(*lpProviderDllPathLen, *lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_Inout_ LPINT lpProviderDllPathLen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSPAPI *LPWSCINSTALLNAMESPACE)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPWSTR lpszIdentifier,
|
|
|
|
_In_ LPWSTR lpszPathName,
|
|
|
|
_In_ DWORD dwNameSpace,
|
|
|
|
_In_ DWORD dwVersion,
|
|
|
|
_In_ LPGUID lpProviderId);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSPAPI *LPWSCUNINSTALLNAMESPACE)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSPAPI *LPWSCENABLENSPROVIDER)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ BOOL fEnable);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
2010-04-07 00:02:57 +00:00
|
|
|
/* Service provider procedure table */
|
|
|
|
typedef struct _WSPPROC_TABLE {
|
|
|
|
LPWSPACCEPT lpWSPAccept;
|
|
|
|
LPWSPADDRESSTOSTRING lpWSPAddressToString;
|
|
|
|
LPWSPASYNCSELECT lpWSPAsyncSelect;
|
|
|
|
LPWSPBIND lpWSPBind;
|
|
|
|
LPWSPCANCELBLOCKINGCALL lpWSPCancelBlockingCall;
|
|
|
|
LPWSPCLEANUP lpWSPCleanup;
|
|
|
|
LPWSPCLOSESOCKET lpWSPCloseSocket;
|
|
|
|
LPWSPCONNECT lpWSPConnect;
|
|
|
|
LPWSPDUPLICATESOCKET lpWSPDuplicateSocket;
|
|
|
|
LPWSPENUMNETWORKEVENTS lpWSPEnumNetworkEvents;
|
|
|
|
LPWSPEVENTSELECT lpWSPEventSelect;
|
|
|
|
LPWSPGETOVERLAPPEDRESULT lpWSPGetOverlappedResult;
|
|
|
|
LPWSPGETPEERNAME lpWSPGetPeerName;
|
|
|
|
LPWSPGETSOCKNAME lpWSPGetSockName;
|
|
|
|
LPWSPGETSOCKOPT lpWSPGetSockOpt;
|
|
|
|
LPWSPGETQOSBYNAME lpWSPGetQOSByName;
|
|
|
|
LPWSPIOCTL lpWSPIoctl;
|
|
|
|
LPWSPJOINLEAF lpWSPJoinLeaf;
|
|
|
|
LPWSPLISTEN lpWSPListen;
|
|
|
|
LPWSPRECV lpWSPRecv;
|
|
|
|
LPWSPRECVDISCONNECT lpWSPRecvDisconnect;
|
|
|
|
LPWSPRECVFROM lpWSPRecvFrom;
|
|
|
|
LPWSPSELECT lpWSPSelect;
|
|
|
|
LPWSPSEND lpWSPSend;
|
|
|
|
LPWSPSENDDISCONNECT lpWSPSendDisconnect;
|
|
|
|
LPWSPSENDTO lpWSPSendTo;
|
|
|
|
LPWSPSETSOCKOPT lpWSPSetSockOpt;
|
|
|
|
LPWSPSHUTDOWN lpWSPShutdown;
|
|
|
|
LPWSPSOCKET lpWSPSocket;
|
|
|
|
LPWSPSTRINGTOADDRESS lpWSPStringToAddress;
|
|
|
|
} WSPPROC_TABLE, FAR* LPWSPPROC_TABLE;
|
|
|
|
|
2010-03-30 13:24:23 +00:00
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPCLEANUP)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPLOOKUPSERVICEBEGIN)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPWSAQUERYSETW lpqsRestrictions,
|
|
|
|
_In_ LPWSASERVICECLASSINFOW lpServiceClassInfo,
|
|
|
|
_In_ DWORD dwControlFlags,
|
|
|
|
_Out_ LPHANDLE lphLookup);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPLOOKUPSERVICENEXT)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ HANDLE hLookup,
|
|
|
|
_In_ DWORD dwControlFlags,
|
|
|
|
_Inout_ LPDWORD lpdwBufferLength,
|
|
|
|
_Out_writes_bytes_to_(*lpdwBufferLength, *lpdwBufferLength) LPWSAQUERYSETW lpqsResults);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#if(_WIN32_WINNT >= 0x0501)
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPIOCTL)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ HANDLE hLookup,
|
|
|
|
_In_ DWORD dwControlCode,
|
|
|
|
_In_reads_bytes_(cbInBuffer) LPVOID lpvInBuffer,
|
|
|
|
_In_ DWORD cbInBuffer,
|
|
|
|
_Out_writes_bytes_to_(cbOutBuffer, *lpcbBytesReturned) LPVOID lpvOutBuffer,
|
|
|
|
_In_ DWORD cbOutBuffer,
|
|
|
|
_Out_ LPDWORD lpcbBytesReturned,
|
|
|
|
_In_opt_ LPWSACOMPLETION lpCompletion,
|
|
|
|
_In_ LPWSATHREADID lpThreadId);
|
2010-03-30 13:24:23 +00:00
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
2010-03-30 13:24:23 +00:00
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPLOOKUPSERVICEEND)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ HANDLE hLookup);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPSETSERVICE)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPWSASERVICECLASSINFOW lpServiceClassInfo,
|
|
|
|
_In_ LPWSAQUERYSETW lpqsRegInfo,
|
|
|
|
_In_ WSAESETSERVICEOP essOperation,
|
|
|
|
_In_ DWORD dwControlFlags);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPINSTALLSERVICECLASS)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPWSASERVICECLASSINFOW lpServiceClassInfo);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPREMOVESERVICECLASS)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPGUID lpServiceClassId);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPGETSERVICECLASSINFO)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPDWORD lpdwBufSize,
|
|
|
|
_In_ LPWSASERVICECLASSINFOW lpServiceClassInfo);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
2013-08-14 16:17:16 +00:00
|
|
|
typedef
|
|
|
|
_Must_inspect_result_
|
|
|
|
INT
|
2010-03-30 13:24:23 +00:00
|
|
|
(WSAAPI *LPNSPV2STARTUP)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Outptr_ LPVOID *ppvClientSessionArg);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPV2CLEANUP)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPVOID pvClientSessionArg);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPV2LOOKUPSERVICEBEGIN)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPWSAQUERYSET2W lpqsRestrictions,
|
|
|
|
_In_ DWORD dwControlFlags,
|
|
|
|
_In_ LPVOID lpvClientSessionArg,
|
|
|
|
_Out_ LPHANDLE lphLookup);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef VOID
|
|
|
|
(WSAAPI *LPNSPV2LOOKUPSERVICENEXTEX)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ HANDLE hAsyncCall,
|
|
|
|
_In_ HANDLE hLookup,
|
|
|
|
_In_ DWORD dwControlFlags,
|
|
|
|
_In_ LPDWORD lpdwBufferLength,
|
|
|
|
_Out_ LPWSAQUERYSET2W lpqsResults);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef INT
|
|
|
|
(WSAAPI *LPNSPV2LOOKUPSERVICEEND)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ HANDLE hLookup);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef VOID
|
|
|
|
(WSAAPI *LPNSPV2SETSERVICEEX)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ HANDLE hAsyncCall,
|
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPWSAQUERYSET2W lpqsRegInfo,
|
|
|
|
_In_ WSAESETSERVICEOP essOperation,
|
|
|
|
_In_ DWORD dwControlFlags,
|
|
|
|
_In_ LPVOID lpvClientSessionArg);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef VOID
|
|
|
|
(WSAAPI *LPNSPV2CLIENTSESSIONRUNDOWN)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPVOID pvClientSessionArg);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
2010-04-07 00:02:57 +00:00
|
|
|
/* Service Provider upcall table */
|
|
|
|
typedef struct _WSPUPCALLTABLE {
|
|
|
|
LPWPUCLOSEEVENT lpWPUCloseEvent;
|
|
|
|
LPWPUCLOSESOCKETHANDLE lpWPUCloseSocketHandle;
|
|
|
|
LPWPUCREATEEVENT lpWPUCreateEvent;
|
|
|
|
LPWPUCREATESOCKETHANDLE lpWPUCreateSocketHandle;
|
|
|
|
LPWPUFDISSET lpWPUFDIsSet;
|
|
|
|
LPWPUGETPROVIDERPATH lpWPUGetProviderPath;
|
|
|
|
LPWPUMODIFYIFSHANDLE lpWPUModifyIFSHandle;
|
|
|
|
LPWPUPOSTMESSAGE lpWPUPostMessage;
|
|
|
|
LPWPUQUERYBLOCKINGCALLBACK lpWPUQueryBlockingCallback;
|
|
|
|
LPWPUQUERYSOCKETHANDLECONTEXT lpWPUQuerySocketHandleContext;
|
|
|
|
LPWPUQUEUEAPC lpWPUQueueApc;
|
|
|
|
LPWPURESETEVENT lpWPUResetEvent;
|
|
|
|
LPWPUSETEVENT lpWPUSetEvent;
|
|
|
|
LPWPUOPENCURRENTTHREAD lpWPUOpenCurrentThread;
|
|
|
|
LPWPUCLOSETHREAD lpWPUCloseThread;
|
|
|
|
} WSPUPCALLTABLE, FAR* LPWSPUPCALLTABLE;
|
|
|
|
|
2013-08-14 16:17:16 +00:00
|
|
|
typedef
|
|
|
|
_Must_inspect_result_
|
|
|
|
int
|
2010-04-07 00:02:57 +00:00
|
|
|
(WSPAPI *LPWSPSTARTUP)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ WORD wVersionRequested,
|
|
|
|
_In_ LPWSPDATA lpWSPData,
|
|
|
|
_In_ LPWSAPROTOCOL_INFOW lpProtocolInfo,
|
|
|
|
_In_ WSPUPCALLTABLE UpcallTable,
|
|
|
|
_Out_ LPWSPPROC_TABLE lpProcTable);
|
2010-04-07 00:02:57 +00:00
|
|
|
|
|
|
|
#if (_WIN32_WINNT >= 0x0600)
|
|
|
|
|
|
|
|
#define LSP_SYSTEM 0x80000000
|
|
|
|
#define LSP_INSPECTOR 0x00000001
|
|
|
|
#define LSP_REDIRECTOR 0x00000002
|
|
|
|
#define LSP_PROXY 0x00000004
|
|
|
|
#define LSP_FIREWALL 0x00000008
|
|
|
|
#define LSP_INBOUND_MODIFY 0x00000010
|
|
|
|
#define LSP_OUTBOUND_MODIFY 0x00000020
|
|
|
|
#define LSP_CRYPTO_COMPRESS 0x00000040
|
|
|
|
#define LSP_LOCAL_CACHE 0x00000080
|
|
|
|
|
|
|
|
typedef enum _WSC_PROVIDER_INFO_TYPE {
|
|
|
|
ProviderInfoLspCategories,
|
|
|
|
ProviderInfoAudit
|
|
|
|
} WSC_PROVIDER_INFO_TYPE ;
|
|
|
|
|
|
|
|
typedef struct _WSC_PROVIDER_AUDIT_INFO {
|
|
|
|
DWORD RecordSize;
|
|
|
|
PVOID Reserved;
|
|
|
|
} WSC_PROVIDER_AUDIT_INFO;
|
|
|
|
|
|
|
|
#endif /* (_WIN32_WINNT >= 0x0600) */
|
|
|
|
|
|
|
|
typedef struct _NSP_ROUTINE {
|
|
|
|
DWORD cbSize;
|
|
|
|
DWORD dwMajorVersion;
|
|
|
|
DWORD dwMinorVersion;
|
|
|
|
LPNSPCLEANUP NSPCleanup;
|
|
|
|
LPNSPLOOKUPSERVICEBEGIN NSPLookupServiceBegin;
|
|
|
|
LPNSPLOOKUPSERVICENEXT NSPLookupServiceNext;
|
|
|
|
LPNSPLOOKUPSERVICEEND NSPLookupServiceEnd;
|
|
|
|
LPNSPSETSERVICE NSPSetService;
|
|
|
|
LPNSPINSTALLSERVICECLASS NSPInstallServiceClass;
|
|
|
|
LPNSPREMOVESERVICECLASS NSPRemoveServiceClass;
|
|
|
|
LPNSPGETSERVICECLASSINFO NSPGetServiceClassInfo;
|
|
|
|
LPNSPIOCTL NSPIoctl;
|
|
|
|
} NSP_ROUTINE, *PNSP_ROUTINE, FAR* LPNSP_ROUTINE;
|
|
|
|
|
2013-08-14 16:17:16 +00:00
|
|
|
typedef
|
|
|
|
_Must_inspect_result_
|
|
|
|
INT
|
2010-04-07 00:02:57 +00:00
|
|
|
(WSAAPI *LPNSPSTARTUP)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Inout_ LPNSP_ROUTINE lpnspRoutines);
|
2010-04-07 00:02:57 +00:00
|
|
|
|
|
|
|
typedef struct _NSPV2_ROUTINE {
|
|
|
|
DWORD cbSize;
|
|
|
|
DWORD dwMajorVersion;
|
|
|
|
DWORD dwMinorVersion;
|
|
|
|
LPNSPV2STARTUP NSPv2Startup;
|
|
|
|
LPNSPV2CLEANUP NSPv2Cleanup;
|
2021-06-11 12:29:21 +00:00
|
|
|
LPNSPV2LOOKUPSERVICEBEGIN NSPv2LookupServiceBegin;
|
2010-04-07 00:02:57 +00:00
|
|
|
LPNSPV2LOOKUPSERVICENEXTEX NSPv2LookupServiceNextEx;
|
2021-06-11 12:29:21 +00:00
|
|
|
LPNSPV2LOOKUPSERVICEEND NSPv2LookupServiceEnd;
|
2010-04-07 00:02:57 +00:00
|
|
|
LPNSPV2SETSERVICEEX NSPv2SetServiceEx;
|
|
|
|
LPNSPV2CLIENTSESSIONRUNDOWN NSPv2ClientSessionRundown;
|
|
|
|
} NSPV2_ROUTINE, *PNSPV2_ROUTINE, *LPNSPV2_ROUTINE;
|
|
|
|
typedef const NSPV2_ROUTINE *PCNSPV2_ROUTINE, *LPCNSPV2_ROUTINE;
|
|
|
|
|
2013-08-14 16:17:16 +00:00
|
|
|
_Must_inspect_result_
|
2010-03-30 13:24:23 +00:00
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSPStartup(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ WORD wVersionRequested,
|
|
|
|
_In_ LPWSPDATA lpWSPData,
|
|
|
|
_In_ LPWSAPROTOCOL_INFOW lpProtocolInfo,
|
|
|
|
_In_ WSPUPCALLTABLE UpcallTable,
|
|
|
|
_Out_ LPWSPPROC_TABLE lpProcTable);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCEnumProtocols(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_opt_ LPINT lpiProtocols,
|
|
|
|
_Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferLength) LPWSAPROTOCOL_INFOW lpProtocolBuffer,
|
|
|
|
_Inout_ LPDWORD lpdwBufferLength,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
2010-04-07 00:02:57 +00:00
|
|
|
#if (_WIN32_WINNT >= 0x0501)
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WPUOpenCurrentThread(
|
2013-08-14 16:17:16 +00:00
|
|
|
_Out_ LPWSATHREADID lpThreadId,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WPUCloseThread(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPWSATHREADID lpThreadId,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#define WSCEnumNameSpaceProviders WSAEnumNameSpaceProvidersW
|
|
|
|
#define LPFN_WSCENUMNAMESPACEPROVIDERS LPFN_WSAENUMNAMESPACEPROVIDERSW
|
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCUpdateProvider(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_z_ const WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList,
|
|
|
|
_In_ DWORD dwNumberOfEntries,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSCUPDATEPROVIDER)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_z_ const WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList,
|
|
|
|
_In_ DWORD dwNumberOfEntries,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#if defined(_WIN64)
|
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCEnumProtocols32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_opt_ LPINT lpiProtocols,
|
|
|
|
_Out_writes_bytes_(*lpdwBufferLength) LPWSAPROTOCOL_INFOW lpProtocolBuffer,
|
|
|
|
_Inout_ LPDWORD lpdwBufferLength,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCDeinstallProvider32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCInstallProvider64_32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_z_ const WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList,
|
|
|
|
_In_ DWORD dwNumberOfEntries,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
2013-08-14 16:17:16 +00:00
|
|
|
_Success_(return == 0)
|
2010-03-30 13:24:23 +00:00
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCGetProviderPath32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Out_writes_to_(*lpProviderDllPathLen, *lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_Inout_ LPINT lpProviderDllPathLen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCUpdateProvider32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_z_ const WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList,
|
|
|
|
_In_ DWORD dwNumberOfEntries,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSAAPI
|
|
|
|
WSCEnumNameSpaceProviders32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_Inout_ LPDWORD lpdwBufferLength,
|
|
|
|
_Out_writes_bytes_(*lpdwBufferLength) LPWSANAMESPACE_INFOW lpnspBuffer);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSPAPI
|
|
|
|
WSCInstallNameSpace32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPWSTR lpszIdentifier,
|
|
|
|
_In_ LPWSTR lpszPathName,
|
|
|
|
_In_ DWORD dwNameSpace,
|
|
|
|
_In_ DWORD dwVersion,
|
|
|
|
_In_ LPGUID lpProviderId);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSPAPI
|
|
|
|
WSCUnInstallNameSpace32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSPAPI
|
|
|
|
WSCEnableNSProvider32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ BOOL fEnable);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#endif /* defined(_WIN64) */
|
|
|
|
|
|
|
|
#endif /* defined(_WIN32_WINNT >= 0x0501) */
|
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCDeinstallProvider(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCInstallProvider(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_z_ const WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_In_reads_(dwNumberOfEntries) const LPWSAPROTOCOL_INFOW lpProtocolInfoList,
|
|
|
|
_In_ DWORD dwNumberOfEntries,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCGetProviderPath(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Out_writes_to_(*lpProviderDllPathLen, *lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_Inout_ LPINT lpProviderDllPathLen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#if (_WIN32_WINNT < 0x0600)
|
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCInstallQOSTemplate(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ const LPGUID Guid,
|
|
|
|
_In_ LPWSABUF QosName,
|
|
|
|
_In_ LPQOS Qos);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSCINSTALLQOSTEMPLATE)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ const LPGUID Guid,
|
|
|
|
_In_ LPWSABUF QosName,
|
|
|
|
_In_ LPQOS Qos);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCRemoveQOSTemplate(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ const LPGUID Guid,
|
|
|
|
_In_ LPWSABUF QosName);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
typedef int
|
|
|
|
(WSPAPI *LPWSCREMOVEQOSTEMPLATE)(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ const LPGUID Guid,
|
|
|
|
_In_ LPWSABUF QosName);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#endif /* (_WIN32_WINNT < 0x0600) */
|
|
|
|
|
|
|
|
#if(_WIN32_WINNT >= 0x0600)
|
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCSetProviderInfo(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ WSC_PROVIDER_INFO_TYPE InfoType,
|
|
|
|
_In_reads_bytes_(InfoSize) PBYTE Info,
|
|
|
|
_In_ size_t InfoSize,
|
|
|
|
_In_ DWORD Flags,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCGetProviderInfo(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ WSC_PROVIDER_INFO_TYPE InfoType,
|
|
|
|
_Out_writes_bytes_to_(*InfoSize, *InfoSize) PBYTE Info,
|
2018-02-04 11:29:23 +00:00
|
|
|
_Inout_ size_t *InfoSize,
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ DWORD Flags,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCSetApplicationCategory(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_reads_(PathLength) LPCWSTR Path,
|
|
|
|
_In_ DWORD PathLength,
|
|
|
|
_In_reads_opt_(ExtraLength) LPCWSTR Extra,
|
|
|
|
_In_ DWORD ExtraLength,
|
|
|
|
_In_ DWORD PermittedLspCategories,
|
|
|
|
_Out_opt_ DWORD *pPrevPermLspCat,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCGetApplicationCategory(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_reads_(PathLength) LPCWSTR Path,
|
|
|
|
_In_ DWORD PathLength,
|
|
|
|
_In_reads_opt_(ExtraLength) LPCWSTR Extra,
|
|
|
|
_In_ DWORD ExtraLength,
|
|
|
|
_Out_ DWORD *pPermittedLspCategories,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#define WSCEnumNameSpaceProvidersEx WSAEnumNameSpaceProvidersExW
|
|
|
|
#define LPFN_WSCENUMNAMESPACEPROVIDERSEX LPFN_WSAENUMNAMESPACEPROVIDERSEXW
|
|
|
|
|
|
|
|
INT
|
|
|
|
WSPAPI
|
|
|
|
WSCInstallNameSpaceEx(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPWSTR lpszIdentifier,
|
|
|
|
_In_ LPWSTR lpszPathName,
|
|
|
|
_In_ DWORD dwNameSpace,
|
|
|
|
_In_ DWORD dwVersion,
|
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPBLOB lpProviderSpecific);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSAAPI
|
|
|
|
WSAAdvertiseProvider(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ const GUID *puuidProviderId,
|
|
|
|
_In_ const LPCNSPV2_ROUTINE pNSPv2Routine);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSAAPI
|
|
|
|
WSAUnadvertiseProvider(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ const GUID *puuidProviderId);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSAAPI
|
|
|
|
WSAProviderCompleteAsyncCall(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ HANDLE hAsyncCall,
|
|
|
|
_In_ INT iRetCode);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#if defined(_WIN64)
|
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCSetProviderInfo32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ WSC_PROVIDER_INFO_TYPE InfoType,
|
|
|
|
_In_reads_bytes_(InfoSize) PBYTE Info,
|
|
|
|
_In_ size_t InfoSize,
|
|
|
|
_In_ DWORD Flags,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCGetProviderInfo32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ WSC_PROVIDER_INFO_TYPE InfoType,
|
|
|
|
_Out_writes_bytes_to_(*InfoSize, *InfoSize) PBYTE Info,
|
|
|
|
_Inout_ size_t *InfoSize,
|
|
|
|
_In_ DWORD Flags,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSAAPI
|
|
|
|
WSCEnumNameSpaceProvidersEx32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_Inout_ LPDWORD lpdwBufferLength,
|
|
|
|
_Out_writes_bytes_(*lpdwBufferLength) LPWSANAMESPACE_INFOEXW lpnspBuffer);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSPAPI
|
|
|
|
WSCInstallNameSpaceEx32(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPWSTR lpszIdentifier,
|
|
|
|
_In_ LPWSTR lpszPathName,
|
|
|
|
_In_ DWORD dwNameSpace,
|
|
|
|
_In_ DWORD dwVersion,
|
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ LPBLOB lpProviderSpecific);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#endif /* (_WIN64) */
|
|
|
|
|
|
|
|
#if defined(_WIN64)
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCInstallProviderAndChains64_32(
|
|
|
|
#else
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WSCInstallProviderAndChains(
|
|
|
|
#endif
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ const LPWSTR lpszProviderDllPath,
|
2010-03-30 13:24:23 +00:00
|
|
|
#if defined(_WIN64)
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ const LPWSTR lpszProviderDllPath32,
|
2010-03-30 13:24:23 +00:00
|
|
|
#endif
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ const LPWSTR lpszLspName,
|
|
|
|
_In_ DWORD dwServiceFlags,
|
|
|
|
_Inout_updates_(dwNumberOfEntries) LPWSAPROTOCOL_INFOW lpProtocolInfoList,
|
|
|
|
_In_ DWORD dwNumberOfEntries,
|
|
|
|
_Out_opt_ LPDWORD lpdwCatalogEntryId,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#endif /* (_WIN32_WINNT >= 0x0600) */
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WSPAPI
|
|
|
|
WPUCloseEvent(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ WSAEVENT hEvent,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WPUCloseSocketHandle(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
WSAEVENT
|
|
|
|
WSPAPI
|
|
|
|
WPUCreateEvent(
|
2013-08-14 16:17:16 +00:00
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
SOCKET
|
|
|
|
WSPAPI
|
|
|
|
WPUCreateSocketHandle(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ DWORD dwCatalogEntryId,
|
|
|
|
_In_ DWORD_PTR dwContext,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WPUFDIsSet(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_In_ fd_set FAR *fdset);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WPUGetProviderPath(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Out_writes_(*lpProviderDllPathLen) WCHAR FAR *lpszProviderDllPath,
|
|
|
|
_Inout_ LPINT lpProviderDllPathLen,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
SOCKET
|
|
|
|
WSPAPI
|
|
|
|
WPUModifyIFSHandle(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ DWORD dwCatalogEntryId,
|
|
|
|
_In_ SOCKET ProposedHandle,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
BOOL
|
|
|
|
WSPAPI
|
|
|
|
WPUPostMessage(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ HWND hWnd,
|
|
|
|
_In_ UINT Msg,
|
|
|
|
_In_ WPARAM wParam,
|
|
|
|
_In_ LPARAM lParam);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WPUQueryBlockingCallback(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ DWORD dwCatalogEntryId,
|
|
|
|
_Out_ LPBLOCKINGCALLBACK FAR *lplpfnCallback,
|
|
|
|
_Out_ PDWORD_PTR lpdwContext,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WPUQuerySocketHandleContext(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_Out_ PDWORD_PTR lpContext,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WPUQueueApc(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPWSATHREADID lpThreadId,
|
|
|
|
_In_ LPWSAUSERAPC lpfnUserApc,
|
|
|
|
_In_ DWORD_PTR dwContext,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
BOOL
|
|
|
|
WSPAPI
|
|
|
|
WPUResetEvent(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ WSAEVENT hEvent,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
BOOL
|
|
|
|
WSPAPI
|
|
|
|
WPUSetEvent(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ WSAEVENT hEvent,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
WSPAPI
|
|
|
|
WPUCompleteOverlappedRequest(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ SOCKET s,
|
|
|
|
_Inout_ LPWSAOVERLAPPED lpOverlapped,
|
|
|
|
_In_ DWORD dwError,
|
|
|
|
_In_ DWORD cbTransferred,
|
|
|
|
_Out_ LPINT lpErrno);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSPAPI
|
|
|
|
WSCInstallNameSpace(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPWSTR lpszIdentifier,
|
|
|
|
_In_ LPWSTR lpszPathName,
|
|
|
|
_In_ DWORD dwNameSpace,
|
|
|
|
_In_ DWORD dwVersion,
|
|
|
|
_In_ LPGUID lpProviderId);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSPAPI
|
|
|
|
WSCUnInstallNameSpace(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
WSPAPI
|
|
|
|
WSCEnableNSProvider(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_In_ BOOL fEnable);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
2013-08-14 16:17:16 +00:00
|
|
|
_Must_inspect_result_
|
2010-03-30 13:24:23 +00:00
|
|
|
INT
|
|
|
|
WSAAPI
|
|
|
|
NSPStartup(
|
2013-08-14 16:17:16 +00:00
|
|
|
_In_ LPGUID lpProviderId,
|
|
|
|
_Inout_ LPNSP_ROUTINE lpnspRoutines);
|
2010-03-30 13:24:23 +00:00
|
|
|
|
|
|
|
#if !defined(_WIN64)
|
|
|
|
#include <poppack.h>
|
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2010-03-30 13:24:23 +00:00
|
|
|
#endif
|