Engine::SetEventThreadingModel method
Specifies the threading model that is being used to call the solution s native events that have been registered with the Engine.
Syntax
virtual HRESULT SetEventThreadingModel(
[in] ThreadingModel eventThreadingModel
) = 0;
Parameters
-
eventThreadingModel [in]
-
The threading model to use when invoking the solution s callbacks. See the ThreadingModel enumeration for details.
Return value
If successful, the method returns S_OK.
If a job is running, the method returns AXE_E_JOB_RUNNING. Event handlers cannot be changed while a job is running.
If a there are events already queued with the Asynchronous Procedure Call mechanism in the operating system, the method returns AXE_E_QUEUED_APC_EVENTS. The threading model cannot be changed until these queued events are processed.
If the specified threading model is not a valid ThreadingModel enumerator, the method returns E_INVALIDARG.
Requirements
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
Header |
|
DLL |
|