IVMRSurface9::GetSurface
Microsoft DirectShow 9.0 |
IVMRSurface9::GetSurface
The GetSurface method retrieves the attached Direct3D surface.
Syntax
HRESULT GetSurface( IDirect3DSurface9** lplpSurface );
Parameters
lplpSurface
[out] Address of a variable that receives an IDirect3DSurface9 interface pointer. The caller must release the interface.
Return Values
The method returns an HRESULT. Possible values include those in the following table.
Value | Description |
S_OK | The method succeeded. |
E_POINTER | lplpSurface is invalid. |
E_FAIL | No Direct3D surface is attached to this sample. |
Remarks
The media sample object increments the reference count on the returned interface. The caller must call Release on the interface.
Requirements
Header: Include D3d9.h, Vmr9.h.
Library: Use Strmiids.lib.
See Also