WSAIoctl

fnint WSAIoctl( SOCKET s, DWORD dwIoControlCode, void * lpvInBuffer, DWORD cbInBuffer, void * lpvOutBuffer, DWORD cbOutBuffer, DWORD * lpcbBytesReturned, OVERLAPPED * lpOverlapped, void * lpCompletionRoutine )

Retrieve extension function pointer from Winsock.

Used to load AcceptEx, ConnectEx, and other extension functions.

Parameters

sSocket descriptor.
lpvInBufferGUID of the function to retrieve.
cbInBufferSize of the GUID.
lpvOutBufferReceives the function pointer.
cbOutBufferSize of the output buffer.
lpcbBytesReturnedReceives actual bytes returned.
lpOverlappedOverlapped structure (usually null for this call).
lpCompletionRoutineCompletion routine (usually null).

Returns

0 on success, SOCKET_ERROR on failure.