VMRMONITORINFO structure (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The VMRMONITORINFO structure is used in the IVMRMonitorConfig::GetAvailableMonitors method to set and retrieve information about monitors on the system (VMR-7 only).

Syntax

typedef struct tagVMRMONITORINFO {
  VMRGUID       guid;
  RECT          rcMonitor;
  HMONITOR      hMon;
  DWORD         dwFlags;
  wchar_t       szDevice[32];
  wchar_t       szDescription[256];
  LARGE_INTEGER liDriverVersion;
  DWORD         dwVendorId;
  DWORD         dwDeviceId;
  DWORD         dwSubSysId;
  DWORD         dwRevision;
} VMRMONITORINFO;

Members

guid

A VMRGUID structure that specifies the monitor.

rcMonitor

The monitor rectangle.

hMon

A handle to the monitor.

dwFlags

Flags as defined for the MONITORINFOEX structure. Currently the only valid flag is MONITORINFOF_PRIMARY, which indicates the primary display monitor.

szDevice[32]

Null-terminated string containing the device name.

szDescription[256]

Null-terminated string containing the device description.

liDriverVersion

dwVendorId

dwDeviceId

dwSubSysId

dwRevision

Requirements

Requirement Value
Header strmif.h (include Dshow.h)

See also

DirectShow Structures