COMPATIBILITY_CONTEXT_ELEMENT structure (winnt.h)

The COMPATIBILITY_CONTEXT_ELEMENT structure is used by the QueryActCtxW function as part of the ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION structure.

Syntax

typedef struct _COMPATIBILITY_CONTEXT_ELEMENT {
  GUID                              Id;
  ACTCTX_COMPATIBILITY_ELEMENT_TYPE Type;
  ULONGLONG                         MaxVersionTested;
} COMPATIBILITY_CONTEXT_ELEMENT, *PCOMPATIBILITY_CONTEXT_ELEMENT;

Members

Id

This is a GUID that specifies a version of Windows.

Value Meaning
{e2011457-1546-43c5-a5fe-008deee3d3f0}
Windows Vista
{35138b9a-5d96-4fbd-8e2d-a2440225f93a}
Windows 7

Type

A value of the ACTCTX_COMPATIBILITY_ELEMENT_TYPE enumeration that describes the compatibility elements in the application manifest.

MaxVersionTested

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header winnt.h (include Windows.h)