IPXV_Inst::ThreadSafeCall Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
Line 8: | Line 8: | ||
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT ThreadSafeCall([in] IPXV_ThreadSafeCallback* | + | <pre class="brush:cpp;gutter:false">HRESULT ThreadSafeCall([in] IPXV_ThreadSafeCallback* cb, |
− | [in, defaultvalue(0)] VARIANT_BOOL | + | [in, defaultvalue(0)] VARIANT_BOOL WaitWithMsgLoop);</pre> |
== Parameters == | == Parameters == | ||
− | ; | + | ;cb |
:[in] Pointer to [[PXV:IPXV_ThreadSafeCallback|IPXV_ThreadSafeCallback]] interface. | :[in] Pointer to [[PXV:IPXV_ThreadSafeCallback|IPXV_ThreadSafeCallback]] interface. | ||
− | ; | + | ;WaitWithMsgLoop |
:[in, defaultvalue(0)] Specify <tt>true</tt> value to make call asynchronous but with message-loop inside caller's thread until method [[PXV:IPXV_ThreadSafeCallback_OnThreadSafeCall|OnThreadSafeCall]] will be finished. | :[in, defaultvalue(0)] Specify <tt>true</tt> value to make call asynchronous but with message-loop inside caller's thread until method [[PXV:IPXV_ThreadSafeCallback_OnThreadSafeCall|OnThreadSafeCall]] will be finished. | ||
Revision as of 06:34, 12 June 2015
Executes the method OnThreadSafeCall of passed IPXV_ThreadSafeCallback object and ensures it will be called in the main thread.
Syntax
HRESULT ThreadSafeCall([in] IPXV_ThreadSafeCallback* cb, [in, defaultvalue(0)] VARIANT_BOOL WaitWithMsgLoop);
Parameters
- cb
- [in] Pointer to IPXV_ThreadSafeCallback interface.
- WaitWithMsgLoop
- [in, defaultvalue(0)] Specify true value to make call asynchronous but with message-loop inside caller's thread until method OnThreadSafeCall will be finished.
Return Value
Returns S_OK if operation was successful or error code in other cases.