HRESULT DeleteLight(LPDIRECT3DRMLIGHT lpD3DRMLight);
Removes a light from a frame, destroying it if it is no longer referenced. When a light is removed from a frame, it no longer affects meshes in the scene its frame was in.
·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
lpD3DRMLight
Address of a variable that represents the Direct3DRMLight object to be removed.