Activation Context Reference

The activation context functions and structures are used with side-by-side assemblies.

The following table lists the activation context functions.

FunctionDescription
ActivateActCtxActivates the specified activation context.
AddRefActCtxIncrements the reference count of the specified activation context.
CreateActCtxCreates an activation context.
DeactivateActCtxDeactivates the specified activation context.
FindActCtxSectionGuidReturns data contained in the ACTCTX_SECTION_KEYED_DATA structure that corresponds to the specified GUID.
FindActCtxSectionStringReturns data contained in the ACTCTX_SECTION_KEYED_DATA structure that corresponds to the specified string.
GetCurrentActCtxReturns the current activation context.
IsolationAwareCleanupEnsures that memory is freed when a manifest is loaded, unloaded, and reloaded.
QueryActCtxWQueries the activation context for information about an assembly or file.
QueryActCtxSettingsWSpecifies the namespace and attribute name of the attribute that is to be queried.
ReleaseActCtxDecrements the reference count of the specified activation context.
ZombifyActCtxDeactivates the specified activation context, but does not deallocate it.

 

The following table lists activation context structures.

StructureDescription
ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATIONContains detailed information about the activation context.
ACTIVATION_CONTEXT_DETAILED_INFORMATIONContains information about the assembly in the activation context.
ACTIVATION_CONTEXT_QUERY_INDEXContains the assembly within the activation context and the index of the file within the assembly.
ACTCTXContains information that describes a specific activation context.
ACTCTX_SECTION_KEYED_DATAReturns the activation context information along with either the GUID or 32-bit integer-tagged activation context section.
ASSEMBLY_FILE_DETAILED_INFORMATIONContains information about a file of the assembly in the activation context.
ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION

Used by the QueryActCtxW function.

Windows Server 2003 and Windows XP/2000:  This structure is not available.
COMPATIBILITY_CONTEXT_ELEMENT

Used by the QueryActCtxW function as part of the ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION structure.

Windows Server 2008 and earlier, and Windows Vista and earlier:  This structure is not available. It is available beginning with Windows Server 2008 R2 and Windows 7.
ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION

Used by the QueryActCtxW function.

Windows Server 2008 and earlier, and Windows Vista and earlier:  This structure is not available. It is available beginning with Windows Server 2008 R2 and Windows 7.

 

The following table lists activation context enumerations.

EnumerationDescription
ACTCTX_REQUESTED_RUN_LEVELDescribes the requested run level of the activation context.
Windows Server 2003 and Windows XP/2000:  This enumeration is not available.
ACTCTX_COMPATIBILITY_ELEMENT_TYPEDescribes the compatibility element in the application manifest.
Windows Server 2008 and earlier, and Windows Vista and earlier:  This enumeration is not available. It is available beginning with Windows Server 2008 R2 and Windows 7.

 

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags :


Page view tracker