Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.42 KB

File metadata and controls

56 lines (40 loc) · 1.42 KB

Home

Function name : CreateEvent

Group: Synchronization - Library: kernel32


The CreateEvent function creates or opens a named or unnamed event object.


Code examples:

Using an Event Object. Part A: running an application that creates an Event object

Declaration:

HANDLE CreateEvent(
  LPSECURITY_ATTRIBUTES lpEventAttributes, // SD
  BOOL bManualReset,                       // reset type
  BOOL bInitialState,                      // initial state
  LPCTSTR lpName                           // object name
);  

FoxPro declaration:

DECLARE INTEGER CreateEvent IN kernel32;
	INTEGER lpEventAttributes,;
	INTEGER bManualReset,;
	INTEGER bInitialState,;
	STRING  lpName  

Parameters:

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.


Return value:

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