Share via


IOCTL_SERVICE_CONNECTION

This IOCTL provides a pointer to the accepted Windows socket. When an incoming network connection arrives to a service's listen port, Services.exe will call the accept function on the connection, and then call into the service with this IOCTL and the input parameter as the accepted socket.

Parameters

  • pBufIn
    [in] Pointer to the accepted Windows socket.

Return Values

Returns TRUE if successful, FALSE otherwise. To obtain extended error information, call the SetLastError function.

Remarks

The service is always responsible for calling the closesocket function on this socket, even if an internal error, such as running out of memory, occurs in the xxx_IOControl function. Services should not process the request on this thread, as they will be blocking the accept thread for the super service thread. Servers should instead spin threads to process requests.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Service.h.

See Also

xxx_IOControl | accept | closesocket

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.