|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| kernel32.lib
| Header File
| winbase.h
| Unicode
| No
| Platform Notes
| None
|
|
|
SetEvent
The SetEvent function sets the state of the specified event object to signaled.
BOOL SetEvent(
HANDLE hEvent
| // handle of event object
| );
|
|
Parameters
hEvent
Identifies the event object. The CreateEvent or OpenEvent function returns this handle.
Windows NT: The handle must have EVENT_MODIFY_STATE access. For more information, see Interprocess Synchronization Objects.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
The state of a manual-reset event object remains signaled until it is set
explicitly to the nonsignaled state by the ResetEvent function. Any number of waiting threads, or threads that subsequently begin
wait operations for the specified event object by calling one of the wait functions, can be released while the object's state is signaled.
The state of an auto-reset event object remains signaled until a single
waiting thread is released, at which time the system automatically sets the state to
nonsignaled. If no threads are waiting, the event object's state remains
signaled.
See Also
CreateEvent, OpenEvent, PulseEvent, ResetEvent
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|