Export (0) Print
Expand All

IExecutionContext::GetProxy Method

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

virtual IThreadProxy * GetProxy() =0;

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

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().

Header: concrtrm.h

Namespace: concurrency

© 2014 Microsoft