IDirect3DTexture::GetHandle

HRESULT GetHandle(LPDIRECT3DDEVICE lpDirect3DDevice,

LPD3DTEXTUREHANDLE lpHandle);

Obtains the texture handle for the Direct3DTexture object. This handle is used in all Direct3D API calls where a texture is to be referenced.

·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:

D3DERR_BADOBJECT

DDERR_INVALIDPARAMS

lpDirect3DDevice

Address of the Direct3DDevice object into which the texture is to be loaded.

lpHandle

Address that will contain the texture handle corresponding to the Direct3DTexture object.