Condividi tramite


VMR9MonitorInfo structure (vmr9.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 VMR9MonitorInfo structure is used with the VMR-9 in the IVMRMonitorConfig9::GetAvailableMonitors method to set and retrieve information about monitors on the system.

Syntax

typedef struct _VMR9MonitorInfo {
  UINT          uDevID;
  RECT          rcMonitor;
  HMONITOR      hMon;
  DWORD         dwFlags;
  wchar_t       szDevice[32];
  wchar_t       szDescription[512];
  LARGE_INTEGER liDriverVersion;
  DWORD         dwVendorId;
  DWORD         dwDeviceId;
  DWORD         dwSubSysId;
  DWORD         dwRevision;
} VMR9MonitorInfo;

Members

uDevID

Integer index that specifies the monitor device.

rcMonitor

Specifies the monitor's rectangle.

hMon

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[512]

Null-terminated string containing a description of the device.

liDriverVersion

Specifies the driver version.

dwVendorId

Specifies the vendor.

dwDeviceId

Specifies the device ID.

dwSubSysId

Specifies the device subsystem.

dwRevision

Specifies the revision number.

Remarks

This structure is used to configure monitors on multi-monitor systems.

Requirements

Requirement Value
Header vmr9.h

See also

DirectShow Structures