IMediaSample2Config::GetSurface method

The GetSurface method returns a pointer to the Direct3D surface managed by this media sample.

Syntax


HRESULT GetSurface(
  [out] IUnknown **ppDirect3DSurface9
);

Parameters

ppDirect3DSurface9 [out]

Receives a pointer to the IUnknown interface of the Direct3D surface. The caller must release the interface.

Return value

Returns an HRESULT value. Possible values include the following.

Return codeDescription
S_OK

Success.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IMediaSample2Config Interface

 

 

Show: