ISecurityCallContext *pCallCtx ;
CoGetCallContext (IID_ISecurityCallContext, (void **) &pCallCtx) ;
Code Explain:
(1) C/C++
HRESULT CoGetCallContext( REFIID riid, void ** ppInterface );
CoGetCallContext retrieves the context of the current call on the current thread
For COM+ applications using role-based security, IID_ISecurityCallContext is available.
retrieve a pointer to the ISecurityCallContext interface.
riid: Interface identifier (IID) of the call context that is being requested.
*ppInterface: contains the requested interface pointer.