wclEventCreate(Boolean, String, Boolean) Method |
Creates or opens a named event object.
Namespace: wclSyncAssembly: wclCommon (in wclCommon.dll) Version: 7.13.7.0 (7.13.7.0)
Syntaxpublic static wclEvent Create(
bool ManualReset,
string Name,
out bool Exist
)
Public Shared Function Create (
ManualReset As Boolean,
Name As String,
<OutAttribute> ByRef Exist As Boolean
) As wclEvent
public:
static wclEvent^ Create(
bool ManualReset,
String^ Name,
[OutAttribute] bool% Exist
)
Parameters
- ManualReset Boolean
- If this parameter is true, the
method creates a manual-reset event object, which requires the use of
the ResetEvent method to set the event state to nonsignaled.
If this parameter is false, the method creates an auto-reset
event object, and the system automatically resets the event state to
nonsignaled after a single waiting thread has been released.
- Name String
- The event name.
- Exist Boolean
- If the method completed with success the parameter
indicates whether a named event object was just created or existing
was opened. true indicates that an event object was opened.
false indicates that a new event object was created.
Return Value
wclEvent If the method completed with success the returning value is
a new
wclEvent object. If the method failed the
returning value is
null.
See Also