WSK_PROVIDER_BASIC_DISPATCH structure (wsk.h)

The WSK_PROVIDER_BASIC_DISPATCH structure specifies the WSK subsystem's dispatch table of functions for a basic socket.

Syntax

typedef struct _WSK_PROVIDER_BASIC_DISPATCH {
  PFN_WSK_CONTROL_SOCKET WskControlSocket;
  PFN_WSK_CLOSE_SOCKET   WskCloseSocket;
} WSK_PROVIDER_BASIC_DISPATCH, *PWSK_PROVIDER_BASIC_DISPATCH;

Members

WskControlSocket

A pointer to the WSK subsystem's WskControlSocket function for the socket.

WskCloseSocket

A pointer to the WSK subsystem's WskCloseSocket function for the socket.

Remarks

A WSK application receives a pointer to a WSK_PROVIDER_BASIC_DISPATCH structure when the WSK application calls the WskSocket function to create a basic socket. The pointer is contained in the Dispatch member of the WSK_SOCKET structure that is received from the WSK subsystem.

The WSK_PROVIDER_BASIC_DISPATCH structure is also included in the WSK_PROVIDER_CONNECTION_DISPATCH, WSK_PROVIDER_DATAGRAM_DISPATCH, and WSK_PROVIDER_LISTEN_DISPATCH structures. The WskControlSocket and WskCloseSocket functions that are included in the WSK_PROVIDER_BASIC_DISPATCH structure are supported by all of the socket categories.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header wsk.h (include Wsk.h)

See also

WSK_PROVIDER_CONNECTION_DISPATCH WSK_PROVIDER_DATAGRAM_DISPATCH

WSK_PROVIDER_LISTEN_DISPATCH

WSK_SOCKET

WskCloseSocket

WskControlSocket

WskSocket