Group: Synchronization - Library: kernel32
Using an Event Object. Part A: running an application that creates an Event object
HANDLE CreateEvent(
LPSECURITY_ATTRIBUTES lpEventAttributes, // SD
BOOL bManualReset, // reset type
BOOL bInitialState, // initial state
LPCTSTR lpName // object name
); DECLARE INTEGER CreateEvent IN kernel32;
INTEGER lpEventAttributes,;
INTEGER bManualReset,;
INTEGER bInitialState,;
STRING lpName lpEventAttributes [in] Pointer to a structure that determines whether the returned handle can be inherited by child processes.
bManualReset [in] Specifies whether a manual-reset or auto-reset event object is created.
bInitialState [in] Specifies the initial state of the event object.
lpName [in] Pointer to a null-terminated string specifying the name of the event object.
If the function succeeds, the return value is a handle to the event object.
Home