Skip to main content
IAppxManifestReader::GetPrerequisite method

Gets the specified prerequisite as defined in the package manifest.

Syntax


HRESULT GetPrerequisite(
  [in]           LPCWSTR name,
  [out, retval]  UINT64 *value
);

Parameters

name [in]

Type: LPCWSTR

The name of the prerequisite, either "OSMinVersion" or "OSMaxVersionTested".

value [out, retval]

Type: UINT64*

The specified prerequisite. In the manifest the dot-trio representation is Major.Minor.AppPlatform. This is converted to the 64-bit value as the follows: The highest order word contains the Major version. The next word contains the Minor version. The next word contains the optional AppPlatform version, if specified.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
E_INVALIDARG

The prerequisite defined in name is not defined in the manifest.

 

Remarks

Prerequisites are specified using the OSMinVersion and OSMaxVersionTested elements in the package manifest.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

AppxPackaging.h

IDL

AppxPackaging.idl

IID

IID_IAppxManifestReader is defined as 4e1bd148-55a0-4480-a3d1-15544710637c

See also

IAppxManifestReader