|Microsoft DirectX 9.0|
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.
HRESULT ChangeDDrawDevice( LPDIRECTDRAW7 lpDirectDrawDevice, HMONITOR hMonitor );
[in] Specifies the DirectDraw device.
[in] Specifies the handle to the monitor associated with the DirectDraw device.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
The VMR needs to know which DirectDraw device is being used at any given time in order to associate the Direct3D surfaces being created in the mixer component with that device.