Skip to content

Files

Latest commit

 

History

History
51 lines (36 loc) · 1.16 KB

OpenEvent.md

File metadata and controls

51 lines (36 loc) · 1.16 KB

Home

Function name : OpenEvent

Group: Synchronization - Library: kernel32


The OpenEvent function opens an existing named event object.


Code examples:

Using an Event Object. Part B: running an application responding to events

Declaration:

HANDLE OpenEvent(
  DWORD dwDesiredAccess,  // access
  BOOL bInheritHandle,    // inheritance option
  LPCTSTR lpName          // object name
);  

FoxPro declaration:

DECLARE INTEGER OpenEvent IN kernel32;
	INTEGER dwDesiredAccess,;
	INTEGER bInheritHandle,;
	STRING  lpName  

Parameters:

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.


Return value:

If the function succeeds, the return value is a handle to the event object.