Freigeben über


WPUCreateEvent Function

The WPUCreateEvent function creates a new event object.

Syntax

WSAEVENT WPUCreateEvent(
  __out  LPINT lpErrno
);

Parameter

  • lpErrno [out]
    Pointer to the error code.

Rückgabewert

If no error occurs, WPUCreateEvent function returns the handle of the event object.

Otherwise, the return value is WSA_INVALID_EVENT and a specific error code is available in lpErrno.

Error code Meaning
WSA_NOT_ENOUGH_MEMORY

There is not enough free memory available to create the event object.

 

Hinweise

The event object created by this function is manually reset with an initial state of nonsignaled. If a Windows service provider requires auto reset events, it can call the Windows CreateEvent function directly.

Anforderungen

Mindestens unterstützter Client

Windows 2000 Professional

Mindestens unterstützter Server

Windows 2000 Server

Header

Ws2spi.h

Siehe auch

WPUCloseEvent