IDirect3DRM::CreateTextureFromSurface

HRESULT CreateTextureFromSurface(LPDIRECTDRAWSURFACE lpDDS,

LPDIRECT3DRMTEXTURE * lplpD3DRMTexture);

Creates a texture from a specified DirectDraw surface.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

lpDDS

Address of the DirectDrawSurface object containing the texture.

lplpD3DRMTexture

Address that will be filled with a pointer to an IDirect3DRMTexture interface if the call succeeds.