Platform SDK: Windows Sockets

WPUCloseEvent

The WPUCloseEvent function closes an open event object handle.

BOOL WPUCloseEvent (
  WSAEVENT   hEvent,   
  LPINT      lpErrno      
);

Parameters

hEvent
[in] Handle to an open event object.
lpErrno
[out] Pointer to the error code.

Return Values

If the function succeeds, the return value is TRUE. Otherwise, the return value is FALSE and a specific error code is available in lpErrno.

Error Codes

Error code Meaning
WSA_INVALID_HANDLE The hEvent is not a valid event object handle.

Requirements

  Version: Requires Windows Sockets 2.0.
  Header: Declared in Ws2spi.h.

See Also

WPUCreateEvent