MI_OperationOptions_SetProviderArchitecture 函数 (mi.h)

设置操作的提供程序体系结构。

语法

MI_INLINE MI_Result MI_OperationOptions_SetProviderArchitecture(
  [in, out] MI_OperationOptions     *options,
  [in]      MI_ProviderArchitecture architecture,
  [in]      MI_Boolean              mustComply
);

参数

[in, out] options

指向 MI_OperationOptions 结构的指针。

[in] architecture

以下 MI_ProviderArchitecture 值之一。

MI_PROVIDER_ARCHITECTURE_32BIT (0)

32 位体系结构。

MI_PROVIDER_ARCHITECTURE_64BIT (1)

64 位体系结构。

[in] mustComply

布尔值 ,其中MI_TRUE 意味着,如果在 64 位计算机上请求 32 位提供程序,则必须使用 32 位提供程序。 MI_FALSE 意味着,如果 32 位提供程序不可用,则可以使用 64 位提供程序。

返回值

此函数返回MI_INLINE MI_Result。

要求

要求
最低受支持的客户端 Windows 8
最低受支持的服务器 Windows Server 2012
目标平台 Windows
标头 mi.h
可再发行组件 windows Server 2008 R2 SP1、Windows 7 SP1 和 Windows Server 2008 SP2 上的Windows Management Framework 3.0