IDirect3DRMTexture::InitFromSurface
HRESULT InitFromSurface(LPDIRECTDRAWSURFACE lpDDS);
Initializes a texture by using the data from a given 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 a DirectDraw surface from which initialization information is drawn.