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 minimum version of the package on which the current package has a dependency.
Syntax
HRESULT GetMinVersion(
[out] UINT64 *minVersion
);
Parameters
[out] minVersion
Type: UINT64*
The minimum version of the package.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If the minimum version is not defined for the dependency, this method returns S_OK and minVersion is 0.
The version is specified using the MinVersion attribute of the PackageDependency element in the package manifest. The specification in the manifest is in quad notation:
major.minor.build.revision
This method converts this notation to a UINT64 value as follows:
- The high-order word contains the major version
- The next word contains the minor version
- The next word contains the build number
- The low-order word contains the revision
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 |