SetColorDepth method of the Win32_TSClientSetting class
The SetColorDepth method sets the ColorDepth property for the class.
Syntax
uint32 SetColorDepth(
[in] uint32 ColorDepth
);
Parameters
-
ColorDepth [in]
-
The new value for the ColorDepth property.
-
1
-
8 bits per pixel
-
2
-
15 bits per pixel
-
3
-
16 bits per pixel
-
4
-
24 bits per pixel
-
5
-
32 bits per pixel
Return value
Returns Success on success, otherwise returns a WMI error code. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values. The method returns an error if the setting is under group policy control.
Remarks
Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (SDK). They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\CIMv2\TerminalServices |
MOF |
|
DLL |
|