Microsoft DirectX 8.1 (C++)

IVMRSurfaceAllocatorNotify::ChangeDDrawDevice

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The ChangeDDrawDevice method notifies the VMR that the DirectDraw playback device has changed. For example, on a multi-monitor system, the user has moved the video rectangle from one monitor to another.

Syntax

HRESULT ChangeDDrawDevice(
  LPDIRECTDRAW7  lpDirectDrawDevice,
  HMONITOR  hMonitor
);

Parameters

lpDirectDrawDevice

[in]  Specifies the DirectDraw device.

hMonitor

[in]  Specifies the handle to the monitor associated with the DirectDraw device.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The VMR needs to know which DirectDraw device is being used at any given time in order to associate the D3D surfaces being created in the mixer component with that device.

See Also