pDevice->LightEnable(0, false);
pDevice->LightEnable(2, true);In both examples, 'pDevice' is a pointer to an instance of LPDIRECT3DDEVICE9 that represents the Direct3D 9 device. The package library for LPDIRECT3DDEVICE9 and associated functions is "d3d9.lib".