IMetroMode::GetMonitorMode method

Applies to: desktop apps only

Queries the current mode of the specified monitor.

Syntax

HRESULT GetMonitorMode(
  [in]   HMONITOR hMonitor,
  [out]  METRO_MONITOR_MODE *pMode
);

Parameters

  • hMonitor [in]
    The monitor to query.

  • pMode [out]
    The current mode of hMonitor.

Return value

This method can return one of these values.

Return code Description
E_INVALIDARG

pMode is NULL.

 

Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IMetroMode

METRO_MONITOR_MODE

 

 

Send comments about this topic to Microsoft

Build date: 7/3/2012