Microsoft DirectX 9.0 |
The GetSurface method retrieves a Direct3D surface.
Syntax
HRESULT GetSurface(
DWORD_PTR dwUserID,
DWORD SurfaceIndex,
DWORD SurfaceFlags,
IDirect3DSurface9** lplpSurface
);
Parameters
dwUserID
[in] Identifies this instance of the VMR.
SurfaceIndex
[in] Specifies the index of the surface to retrieve.
SurfaceFlags
[in] Specifies surface flags.
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. |
Requirements
Include D3d9.h, Vmr9.h.
See Also