Partager via


IExecutionContext::GetProxy Method

Returns an interface to the thread proxy that is executing this context.

virtual IThreadProxy * GetProxy() =0;

Return Value

An IThreadProxy interface. If the execution context's thread proxy has not been initialized with a call to SetProxy, the function must return NULL.

Remarks

The Resource Manager will invoke the SetProxy method on an execution context, with an IThreadProxy interface as a parameter, prior to entering the Dispatch method on the on the context. You are expected to store this argument and return it on calls to GetProxy().

Requirements

Header: concrtrm.h

Namespace: concurrency

See Also

Reference

IExecutionContext Structure

IExecutionContext::SetProxy Method