Does anyone have code to adjust the screen gamma (dimming) using any of the .NET languages?

I've looked all over but haven't found the code needed to do this.

Thanks,
Andy