|Microsoft DirectX 9.0|
The SetDDrawDevice method sets the initial DirectDraw device and monitor to be used for video playback.
HRESULT SetDDrawDevice( LPDIRECTDRAW7 lpDirectDrawDevice, HMONITOR hMonitor );
[in] Specifies the DirectDraw device.
[in] 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.