IAppxManifestPackageId2::GetArchitecture2 method (appxpackaging.h)
Gets the processor architecture as defined in the manifest.
Syntax
HRESULT GetArchitecture2(
[out, retval] APPX_PACKAGE_ARCHITECTURE2 *architecture
);
Parameters
[out, retval] architecture
Type: APPX_PACKAGE_ARCHITECTURE2*
The architecture specified for the package.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Processor architecture information is specified using the ProcessorArchitecture attribute of the Identity element in the app package manifest.
If no architecture is defined in the manifest, this method returns the APPX_PACKAGE_ARCHITECTURE_NEUTRAL value of the APPX_PACKAGE_ARCHITECTURE2 enumeration.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | appxpackaging.h |