Searches for an existing event with the given name and returns its handle.
HANDLE RtOpenEvent( DWORD dwDesiredAccess, BOOLEAN bInheritHandle, LPCTSTR lpName );
dwDesiredAccess
bInheritHandle
lpName
RtOpenEvent can also be used within the real-time portion of your application to obtain the handle of an iwin32 event.
RtOpenEvent enables multiple processes to open handles of the same event object. The function succeeds only if some process has already created the event using RtCreateEvent. The calling process can use the returned handle in any function that requires a handle to an event object.
To close the handle, use RtCloseHandle. When the process terminates, the system automatically closes the handle. When the last handle closes, the event object is destroyed.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/nt/include/iwin32x.h | iwin32x.h | iwin32x.lib |
Notes
RtCloseHandle, RtCreateEvent, iwin32x API, iwin32 Overview