CreateEventEx Function

Action

Creates a named or unnamed event object (Win32 function).

Include file

Kernel.bdh

Syntax

CreateEventEx( in sSecAttr     : string,
               in bManualReset : boolean,
               in bInitSignal  : boolean,
               in sName        : string ): number;

Return value

Handle to event object.

Parameter Description
sSecAttr Specifies the security attributes for the event object
bManualReset

Specifies whether a manual-reset or auto-reset event object is created:

  • true for manual-reset

  • false for auto-reset

bInitSignal

Specifies the initial state of the event object:

  • true for signaled

  • false for unsignaled

sName Name of the event object

Example

hEvent := CreateEventEx(NULL, true, false, "MyStarterEvent");