SecurityCallContext class (COM+)

Switch View :
ScriptFree
SecurityCallContext class

Applies to: desktop apps only

Provides access to the current call's security context, which contains information about an object's callers. Using this class, you can also find out whether an object's direct caller is a member of a particular role and whether security is enabled for the object.

Only COM+ applications that use role-based security can access the SecurityCallContext class. For more information on roles, see Role-Based Security Administration.

When to implement

This class is implemented by COM+.

Interfaces ISecurityCallersColl

 

When to use

Use this class to access the methods of ISecurityCallContext.

Remarks

You cannot directly create a SecurityCallContext object. To use the methods of ISecurityCallContext, you must obtain a reference to its implementation by calling CoGetCallContext, supplying IID_ISecurityCallContext for the riid parameter.

To use this class from Microsoft Visual Basic, add a reference to the COM+ Services Type Library. A SecurityCallContext object can be declared using "COMSVCSLib.SecurityCallContext" as the class name; it is created by calling GetSecurityCallContext.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

ComSvcs.h

See also

GetSecurityCallContext
ISecurityCallContext
Programmatic Component Security
Role-Based Security Administration
SecurityCallers
SecurityIdentity

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012