Group: Synchronization - Library: kernel32
Using an Event Object. Part B: running an application responding to events
HANDLE OpenEvent(
DWORD dwDesiredAccess, // access
BOOL bInheritHandle, // inheritance option
LPCTSTR lpName // object name
);
DECLARE INTEGER OpenEvent IN kernel32;
INTEGER dwDesiredAccess,;
INTEGER bInheritHandle,;
STRING lpName
dwDesiredAccess [in] Specifies the requested access to the event object.
bInheritHandle [in] Specifies whether the returned handle is inheritable.
lpName [in] Pointer to a null-terminated string that names the event to be opened. Name comparisons are case sensitive.
If the function succeeds, the return value is a handle to the event object.