IAppxManifestPackageId2::GetArchitecture2 方法 (appxpackaging.h)

获取清单中定义的处理器体系结构。

语法

HRESULT GetArchitecture2(
  [out, retval] APPX_PACKAGE_ARCHITECTURE2 *architecture
);

参数

[out, retval] architecture

类型: APPX_PACKAGE_ARCHITECTURE2*

为包指定的体系结构。

返回值

类型: HRESULT

如果该方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。

注解

处理器体系结构信息是使用应用包清单中 Identity 元素的 ProcessorArchitecture 属性指定的。

如果未在清单中定义体系结构,此方法将返回 APPX_PACKAGE_ARCHITECTURE2 枚举的 APPX_PACKAGE_ARCHITECTURE_NEUTRAL 值。

要求

要求
最低受支持的客户端 Windows 10 [仅限桌面应用]
最低受支持的服务器 Windows Server 2016 [仅限桌面应用]
目标平台 Windows
标头 appxpackaging.h

另请参阅

IAppxManifestPackageId2