function returns a handle of an existing named event object.
| DWORD dwDesiredAccess,
|// access flag
| BOOL bInheritHandle,
|// inherit flag
| LPCTSTR lpName
|// pointer to event-object name
Specifies the requested access to the event object. For systems that support
object security, the function fails if the security descriptor of the specified
object does not permit the requested access for the calling process.
This parameter can be any combination of the following values:
|Specifies all possible access flags for the event object.
|Enables use of the event handle in the SetEvent and ResetEvent functions to modify the event's state.
|Windows NT only: Enables use of the event handle in any of the wait functions to wait for the event's state to be signaled.
Specifies whether the returned handle is inheritable. If TRUE, a process
created by the CreateProcess
function can inherit the handle; otherwise, the handle cannot be inherited.
Points 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 of the event object.
If the function fails, the return value is NULL. To get extended error
information, call GetLastError
function enables multiple processes to open handles of the same event object.
The function succeeds only if some process has already created the event by
using the CreateEvent
function. The calling process can use the returned handle in any function
that requires a handle of an event object, subject to the limitations of the
access specified in the dwDesiredAccess
The handle can be duplicated by using the DuplicateHandle
function. Use the CloseHandle
function to close the handle. The system closes the handle automatically when
the process terminates. The event object is destroyed when its last handle has
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database