ContextInfo2 interface (comsvcs.h)

Provides additional information about an object's context, supplementing the information that is available through the ContextInfo interface.

ContextInfo2 and IObjectContextInfo2 provide the same functionality, but unlike IObjectContextInfo2, ContextInfo2 is compatible with Automation.

Inheritance

The ContextInfo2 interface inherits from ContextInfo. ContextInfo2 also has these types of members:

Methods

The ContextInfo2 interface has these methods.

 
ContextInfo2::GetApplicationId

Retrieves the GUID of the application of the current object context.
ContextInfo2::GetApplicationInstanceId

Retrieves the GUID of the application instance of the current object context.
ContextInfo2::GetPartitionId

Retrieves the GUID of the COM+ partition of the current object context.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

COM+ Contexts and Threading Models

COM+ Partitions

ContextInfo

IObjectContext

IObjectContextInfo2

ObjectContext