WPUCloseSocketHandle (Windows CE 5.0)
This function closes an existing socket handle.
int WPUCloseSocketHandle(SOCKET s,LPINT lpErrno );
Parameters
- s
[in] Handle to service provider socket created by WPUCreateSocketHandle. - lpErrno
[out] Pointer to the error code.
Return Values
If successful, WPUCloseSocketHandle returns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code is available in lpErrno.
Error value | Description |
---|---|
WSAENOTSOCK | Descriptor is not a socket created by WPUCreateSocketHandle. |
Remarks
This function closes an existing socket handle created by WPUCreateSocketHandle and removes the socket from the internal socket table of Ws2.dll. The owning service provider is responsible for releasing any resources associated with the socket.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Ws2spi.h.
Link Library: Ws2.lib.
See Also
Send Feedback on this topic to the authors