Compartir a través de


IOCTL_SERVICE_CONNECTION

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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 (Services.exe) 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

Header service.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

xxx_IOControl (Services.exe)

Other Resources

accept (Windows Sockets)
closesocket