Name
CreateEvent( )
Synopsis
Creates or opens a named or unnamed event object.
handle = CreateEvent(securityAttributes, bManualReset, bInitialState, name)
Parameters
-
securityAttributes A
PySECURITYATTRIBUTESobject that determines whether the returned handle can be inherited by child processes. IfNone, the returned handle can’t be inherited.-
bManualReset An integer that specifies whether an auto or manual reset object is created. If
true, you must use theResetEvent()function to manually reset the event state to nonsignaled. Iffalse, the system automatically resets the state after a waiting thread has been released.-
bInitialState An integer that specifies if the object is to created in the signaled state. If
true, the object is created signaled; otherwise it’s nonsignaled.-
name A string that specifies the name of the event object or
Noneif an unnamed object is to be created. If this name matches an existing event object, this function requestsEVENT_ALL_ACCESSon the existing object. In this case, thebManualResetandbInitialStateparameters are ignored as they have already been specified when the object was initially created.
Result
The result is a PyHANDLE object referencing the
requested object.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access