SetMaxMonitors method of the Win32_TSClientSetting class

Sets the MaxMonitors property.

Syntax

uint32 SetMaxMonitors(
  [in] uint32 MaxMonitors
);

Parameters

MaxMonitors [in]

Specifies the new maximum number of monitors supported by the server. The minimum value is 1 and the maximum value is 10.

Return value

Returns 0 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 user's connection settings are overridden by the server.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2
Namespace
Root\CIMv2\TerminalServices
MOF
TSCfgWmi.mof
DLL
TSCfgWmi.dll

See also

Win32_TSClientSetting