IDirectDrawVideo::GetSurfaceDesc (Compact 2013)

3/26/2014

This method retrieves a DDSURFACEDESC structure describing the current DirectDraw surface.

Syntax

HRESULT GetSurfaceDesc( 
  DDSURFACEDESC* pSurfaceDesc
);

Parameters

  • pSurfaceDesc
    DDSURFACEDESC structure describing the current DirectDraw surface.

Return Value

Returns an HRESULT value.

Remarks

If no surface is allocated, this method returns E_FAIL.

If a DCI primary surface is in use, the DDSURFACEDESC structure is not filled in and the call returns S_FALSE.

Surfaces are allocated only when the renderer is paused. If the renderer is paused, it cannot release the surfaces when stopped.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IDirectDrawVideo Interface