IAppxManifestPackageId::GetArchitecture method (appxpackaging.h)

Gets the processor architecture as defined in the manifest.

Syntax

HRESULT GetArchitecture(
  [out, retval] APPX_PACKAGE_ARCHITECTURE *architecture
);

Parameters

[out, retval] architecture

Type: APPX_PACKAGE_ARCHITECTURE*

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 package manifest.

If no architecture is defined in the manifest, this method returns the APPX_PACKAGE_ARCHITECTURE_NEUTRAL value of the APPX_PACKAGE_ARCHITECTURE enumeration.

Requirements

   
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header appxpackaging.h

See also

IAppxManifestPackageId