IAppDomainHelper::DoCallback method (comsvcs.h)
Switches into a given application domain (which the calling object must be bound to), executes the supplied callback function in that application domain, and then returns to the original application domain.
Syntax
HRESULT DoCallback(
[in] IUnknown *pUnkAD,
HRESULT()(void *pv) __MIDL__IAppDomainHelper0001,
[in] void *pPool
);
Parameters
[in] pUnkAD
Reference to the IUnknown of the application domain that you want to switch to. The object calling DoCallback must be bound to that application domain.
__MIDL__IAppDomainHelper0001
Reference to the callback function. This function is executed in the application domain that you switched to. The parameter of this function, pv, comes from the pPool parameter, which is defined next.
[in] pPool
This parameter is used to provide any data that the callback function might need.
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP with SP1 [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | comsvcs.h |