IDirect3DLight::GetLight

HRESULT GetLight(LPD3DLIGHT lpLight);

Retrieves the light information for the Direct3DLight object.

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

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpLight

Address of a D3DLIGHT structure that will be filled with the current light data.