Microsoft DirectX 9.0

IVMRImagePresenterExclModeConfig::GetXlcModeDDObjAndPrimarySurface

The GetXlcModeDDObjAndPrimarySurface method retrieves the DirectDraw object and primary surface currently being used by a VMR that has been configured for DirectDraw Exclusive Mode using the SetXlcModeDDObjAndPrimarySurface method.

Syntax

HRESULT GetXlcModeDDObjAndPrimarySurface(
  LPDIRECTDRAW7* lpDDObj,
   LPDIRECTDRAWSURFACE7* lpPrimarySurf
);

Parameters

lpDDObj

[out] Retrieves the Exclusive Mode DirectDraw object created by the application.

lpPrimarySurf

[out] Retrieves the primary surface associated with the DirectDraw object.

Return Values

The method returns an HRESULT. Possible values include those in the following table.

Value Description
S_OK The method succeeded.

Remarks

The procedure for configuring and using an application-defined DirectDraw Exclusive Mode object is described in DirectDraw Exclusive Mode.

See Also