IAppxManifestPackageId::GetVersion method
Gets the version of the package as defined in the manifest.
Syntax
HRESULT GetVersion( [out, retval] UINT64 *packageVersion );
Parameters
- packageVersion [out, retval]
-
Type: UINT64*
The version of the package.
Return value
Type: HRESULT
If the method succeeds, it returns S_OK.
Remarks
The version is specified using the Version attribute of the Identity 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
Examples
For an example, see Quickstart: Read app package manifest info.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IAppxManifestPackageId is defined as 283ce2d7-7153-4a91-9649-7a0f7240945f |
See also