|Microsoft DirectX 9.0|
The GetSurface method retrieves the attached DirectDraw surface.
HRESULT GetSurface( IDirect3DSurface9** lplpSurface );
[out] Address of a variable that receives an IDirect3DSurface9 interface pointer. The caller must release the interface.
The method returns an HRESULT. Possible values include those in the following table.
|S_OK||The method succeeded.|
|E_POINTER||lplpSurface is invalid.|
|E_FAIL||No Direct3D surface is attached to this sample.|
The media sample object increments the reference count on the returned interface. The caller must call Release on the interface.
Include D3d9.h, Vmr9.h.