Share via


IDebugApplication::SynchronousCallInDebuggerThread

Provides a mechanism for the caller to run code in the debugger thread.

Syntax

HRESULT SynchronousCallInDebuggerThread(  
   IDebugThreadCall*  pptc,  
   DWORD_PTR          dwParam1,  
   DWORD_PTR          dwParam2,  
   DWORD_PTR          dwParam3  
);  

Parameters

pptc
[in] The object to call.

dwParam1
[in] First parameter to pass to the IDebugThreadCall::ThreadCallHandler method.

dwParam2
[in] Second parameter to pass to the IDebugThreadCall::ThreadCallHandler method.

dwParam3
[in] Third parameter to pass to the IDebugThreadCall::ThreadCallHandler method.

Return Value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK The method succeeded.

Remarks

Language engines and hosts typically use this method to implement free-threaded objects on top of their single threaded implementations.

See also

IDebugApplication Interface
IDebugThreadCall Interface