Share via


IOCTL_SERVICE_CONNECTION (Windows Embedded CE 6.0)

1/6/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 GetLastError 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

See Also

Reference

Services.exe IOCTLS
xxx_IOControl (Services.exe)

Other Resources

accept (Windows Sockets)
closesocket