Upravit

Sdílet prostřednictvím


WPUResetEvent function (ws2spi.h)

The WPUResetEvent function resets the state of the specified event object to nonsignaled. This call is safe for use within interrupt context.

Syntax

BOOL WPUResetEvent(
  [in]  WSAEVENT hEvent,
  [out] LPINT    lpErrno
);

Parameters

[in] hEvent

Handle that identifies an open event object.

[out] lpErrno

Pointer to the error code.

Return value

If no error occurs, the WPUResetEvent function returns the value TRUE. Otherwise, FALSE is returned, and a specific error code is available in lpErrno.

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

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

See also

WPUCloseEvent

WPUCreateEvent

WPUSetEvent