SetEvent Function


Sets the specified event object to the signaled state. Execute this function on an event that was created with CreateEvent(). In contrast to the function PulseEvent(), SetEvent() raises an event but does not reset it automatically. Use the function ResetEvent() to reset the event manually.

Include file



SetEvent( in hEvent : long ): boolean;
Parameter Description
hEvent event handle returned by CreateEvent()

Return value

  • true if successful

  • false otherwise