Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The WPUCloseSocketHandle function closes an existing socket handle.
Syntax
int WPUCloseSocketHandle(
[in] SOCKET s,
[out] LPINT lpErrno
);
Parameters
[in] s
Handle to socket created with WPUCreateSocketHandle.
[out] lpErrno
Pointer to the error code.
Return value
If no error occurs, WPUCreateSocketHandle returns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code is available in lpErrno.
Error code | Meaning |
---|---|
The descriptor is not a socket created by WPUCreateSocketHandle. |
Remarks
The WPUCloseSocketHandle function closes an existing socket handle created by WPUCreateSocketHandle. This function removes the socket from Ws2_32.dll's internal socket table. The owning service provider is responsible for releasing any resources associated with the socket.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ws2spi.h |