void __stdcall SetLightMode(bool ambient,bool vertexcolor)

Enable ambient color: so the value of setambientcolor will be modulated with the vertex color.
Enable vertex color: the vertex color of vertex data will be modulated with the vertex color.
Parameters:
bool ambient:
bool vertexcolor:

Result:
void: