Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the specified prerequisite as defined in the package manifest.
Syntax
HRESULT GetPrerequisite(
[in] LPCWSTR name,
[out, retval] UINT64 *value
);
Parameters
[in] name
Type: LPCWSTR
The name of the prerequisite, either "OSMinVersion" or "OSMaxVersionTested".
[out, retval] value
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 code | Description |
---|---|
|
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
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | appxpackaging.h |