IDirect3DViewport::DeleteLight

HRESULT DeleteLight(LPDIRECT3DLIGHT lpDirect3DLight);

Removes the specified light from the list of Direct3DLight objects associated with this viewport.

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

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpDirect3DLight

Address of the Direct3DLight object that should be disassociated with this Direct3DDevice object.