Expand Minimize

CIM_MonitorResolution class

The CIM_MonitorResolution class represents the relationship between horizontal and vertical resolutions and the refresh rate and scan mode for a desktop monitor. Values are specified in the video controller object.

Important  The DMTF (Distributed Management Task Force) CIM (Common Information Model) classes are the parent classes upon which WMI classes are built. WMI currently supports only the CIM 2.x version schemas.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class CIM_MonitorResolution
{
  string Caption;
  string Description;
  uint32 HorizontalResolution;
  uint32 MaxRefreshRate;
  uint32 MinRefreshRate;
  uint32 RefreshRate;
  uint16 ScanMode;
  string SettingID;
  uint32 VerticalResolution;
};

Members

The CIM_MonitorResolution class has these types of members:

Properties

The CIM_MonitorResolution class has these properties.

Caption
Data type: string
Access type: Read-only

Short textual description of the CIM_Setting object. This property is inherited from CIM_Setting.

Description
Data type: string
Access type: Read-only

Textual description of the object. This property is inherited from CIM_Setting.

HorizontalResolution
Data type: uint32
Access type: Read-only

Monitor's horizontal resolution, in pixels.

MaxRefreshRate
Data type: uint32
Access type: Read-only

Monitor's maximum refresh rate, in hertz, when a range of rates is supported at the specified resolutions.

MinRefreshRate
Data type: uint32
Access type: Read-only

Monitor's minimum refresh rate, in hertz, when a range of rates is supported at the specified resolutions.

RefreshRate
Data type: uint32
Access type: Read-only

Monitor's refresh rate, in hertz. If a range of rates is supported, use the MinRefreshRate and MaxRefreshRate properties, and set this property to 0.

ScanMode
Data type: uint16
Access type: Read-only

Scan mode that the monitor uses.

ValueMeaning
1

Other

2

Unknown

3

Not supported

4

Non-interlaced operation

5

Interlaced operation

 

SettingID
Data type: string
Access type: Read-only

Part of the key for a CIM_MonitorResolution instance. This property is inherited from CIM_Setting.

VerticalResolution
Data type: uint32
Access type: Read-only

Monitor's vertical resolution in pixels.

Remarks

WMI does not implement this class.

This documentation is derived from the CIM class descriptions published by the DMTF. Microsoft may have made changes to correct minor errors, conform to Microsoft SDK documentation standards, or provide more information.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

 

 

Show:
© 2014 Microsoft