Partilhar via


HorizontalResolution

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

HorizontalResolution specifies the horizontal resolution for the display device.

Values

Resolution

Specifies the horizontal resolution, in pixels. Resolution is an integer.

Valid Passes

auditSystem

auditUser

oobeSystem

specialize

Parent Hierarchy

Microsoft-Windows-Shell-Setup | Display | HorizontalResolution

Applies To

For a list of the supported Windows® editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML Example

The following XML output sets the display resolution to 1024x768, with 32-bit color depth, a refresh rate of 72 hertz, and 120 dpi.

<Display>
   <ColorDepth>32</ColorDepth>
   <DPI>120</DPI>
   <HorizontalResolution>1024</HorizontalResolution>
   <RefreshRate>72</RefreshRate>
   <VerticalResolution>768</VerticalResolution>
</Display>

See Also

Concepts

Display