Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The SetDDrawDevice method sets the initial DirectDraw device and monitor to be used for video playback.
Syntax
HRESULT SetDDrawDevice(
LPDIRECTDRAW7 lpDirectDrawDevice,
HMONITOR hMonitor
);
Parameters
lpDirectDrawDevice
[in] Specifies the DirectDraw device.
hMonitor
[in] 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