Other methods provided by ISecurityCallContext interface.

ISecurityCallContext methods Description
get_Count Retrieves the number of properties in the security context collection.
get_Item Retrieves a specified property in the security call context collection.
get__NewEnum Retrieves an enumerator for the security call context collection.
IsCallerInRole Determines whether the direct caller is in the specified role.
IsSecurityEnabled Determines whether security is enabled for the object.
IsUserInRole Determines whether the specified user is in the specified role.


// Check the security call context properties.

    _variant_t numCallers ;
    pCallCtx->get_Item (_bstr_t ("NumCallers"), &numCallers ) ;

    Display ("number of call is:", numCallers)

Code Explain:
HRESULT get_Item( 
  BSTR name, 
  VARIANT * pItem
);
Item Description Index name Returned type
Direct Caller The immediate caller of the object. "DirectCaller" A SecurityIdentity object
Original Caller The caller that originated the chain of calls to the object. "OriginalCaller" A SecurityIdentity object
Minimum Authentication Level The lowest authentication level used in the chain of calls. "MinAuthenticationLevel" Long
Number of Callers The number of callers in the chain of calls to the object. "NumCallers" Long
Callers The callers in the chain of calls that ends with the current call. "Callers" A SecurityCallers object