CoGetCallContext

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function retrieves the context of the current call on the current thread.


HRESULT CoGetCallContext(
  REFIID riid,
  void** ppInterface
);

riid

[in] Interface identifier (IID) of the call context that is being requested. If you are using the default call context supported by standard marshaling, IID_IServerSecurity is available. For COM+ applications using role-based security, IID_ISecurityCallContext is available.

ppInterface

[out] Address of pointer variable that receives the interface pointer requested in riid. Upon successful return, *ppInterface contains the requested interface pointer.

S_OK

Success.

E_NOINTERFACE

The call context does not support the interface identified by riid.

CoGetCallContext retrieves the context of the current call on the current thread. The riid parameter specifies the interface on the context to be retrieved. This is one of the functions provided to give the server access to any contextual information of the caller.

To determine whether the platform supports this function, see Determining Supported COM APIs.

Headerobjbase.h
Libraryole32.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobileWindows Mobile Version 5.0 and later
Show: