Freigeben über


IDirectDrawStreamSample::GetSurface method (ddstream.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note  This interface is deprecated. New applications should not use it.
 
Retrieves pointers to the current sample's DirectDraw surface and associated clipping rectangle.

Syntax

HRESULT GetSurface(
  [out] IDirectDrawSurface **ppDirectDrawSurface,
  [out] RECT               *pRect
);

Parameters

[out] ppDirectDrawSurface

Address of a pointer to an IDirectDrawSurface interface that specifies the sample's new surface. Set this parameter to NULL if you don't want to specify a new surface.

[out] pRect

Pointer to a RECT structure that will contain the current sample's clipping rectangle. Set this parameter to NULL if you don't want to retrieve the clipping rectangle.

Return value

Returns an HRESULT value.

Remarks

Both parameters are optional. All implementations of this interface must support NULL values as valid parameters. If you retrieve a surface pointer, this method increments its reference count, so you must release the reference.

Requirements

Requirement Value
Target Platform Windows
Header ddstream.h

See also

IDirectDrawStreamSample Interface