Win32_TSClientSetting 类的 SetColorDepth 方法

SetColorDepth 方法设置类的 ColorDepth 属性。

语法

uint32 SetColorDepth(
  [in] uint32 ColorDepth
);

参数

ColorDepth [in]

ColorDepth 属性的新值。

1

每像素 8 位

2

每像素 15 位

3

每像素 16 位

4

每像素 24 位

5

每像素 32 位

返回值

成功时返回 Success,否则返回 WMI 错误代码。 有关这些值的列表,请参阅 远程桌面服务 WMI 提供程序错误代码 。 如果设置处于组策略控制之下,方法将返回错误。

备注

托管对象格式 (MOF) 文件包含 Windows Management Instrumentation (WMI) 类的定义。 MOF 文件未作为 Microsoft Windows 软件开发工具包 (SDK) 的一部分安装。 使用 服务器管理器 添加关联角色时,这些角色将安装在服务器上。 有关 MOF 文件的详细信息,请参阅 托管对象格式 (MOF)

要求

要求
最低受支持的客户端
Windows Vista
最低受支持的服务器
Windows Server 2008
命名空间
Root\CIMv2\TerminalServices
MOF
TSCfgWmi.mof
DLL
TSCfgWmi.dll

另请参阅

Win32_TSClientSetting