Something wrong in SetBrightness() method

Nov 21, 2007 at 3:54 PM
In the static bool SetBrightness(int Percent) method, called "WmiSetBrightness" this way:
BrightnessMethodObject.InvokeMethod("WmiSetBrightness", new object[] { (Int64)0, (byte)ClosestBrightness });
But from:
http://msdn2.microsoft.com/en-us/library/aa394549.aspx
it reads:
uint32 WmiSetBrightness(
uint8 Brightness,
uint64 Timeout
);

The following line should be:
BrightnessMethodObject.InvokeMethod("WmiSetBrightness", new object[] { (byte)ClosestBrightness, (Int64)0 });