SIO_WSK_QUERY_INSPECT_ID

The SIO_WSK_QUERY_INSPECT_ID socket I/O control operation allows a WSK application to query the inspection identification data for a connection-oriented socket that has been successfully accepted on a listening socket that has conditional accept mode enabled. This socket I/O control operation applies only to connection-oriented sockets that have been accepted on a listening socket that has conditional accept mode enabled.

To query the inspection identification data for a connection-oriented socket, a WSK application calls the WskControlSocket function with the following parameters.

ParameterValue

RequestType

WskIoctl

ControlCode

SIO_WSK_QUERY_INSPECT_ID

Level

0

InputSize

0

InputBuffer

NULL

OutputSize

sizeof(WSK_INSPECT_ID)

OutputBuffer

A pointer to a WSK_INSPECT_ID structure that receives the inspection identification data

OutputSizeReturned

A pointer to a ULONG-typed variable that receives the number of bytes of data that is copied into the buffer that is pointed to by the OutputBuffer parameter.

Irp

NULL

 

If a WSK application calls the WskControlSocket function to query the inspection identification data for any socket other than a connection-oriented socket that was accepted on a listening socket that has conditional accept mode enabled, the WskControlSocket function returns STATUS_INVALID_DEVICE_REQUEST.

For more information about conditionally accepting connections, see Listening for and Accepting Incoming Connections.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

Wsk.h (include Wsk.h)

 

 

Send comments about this topic to Microsoft

Show: