|Microsoft DirectX 9.0|
The SetXlcModeDDObjAndPrimarySurface method informs the VMR of the DirectDraw object and primary surface that were created by the application.
HRESULT SetXlcModeDDObjAndPrimarySurface( LPDIRECTDRAW7 lpDDObj, LPDIRECTDRAWSURFACE7 lpPrimarySurf );
[in] Specifies the Exclusive Mode DirectDraw object created by the application.
[in] Specifies the primary surface associated with the DirectDraw object.
The method returns an HRESULT. Possible values include those in the following table.
|S_OK||The method succeeded.|
The procedure for configuring and using an application-defined DirectDraw Exclusive Mode object is described in DirectDraw Exclusive Mode.