as long as i know every monitor used to come with its drivers. I think not all monitor support that kind of detection. But you could import those drivers and try to get the method that allow you to detect the status of the monitor on that time.
On 6/9/09, Marcus <[email protected]> wrote: > > I am trying to get the status off the monitor from my c# application. > I need to know wether it is on or off. > I have found an example of how to do this with HwndSource.FromHwnd and > WindowInteropHelper (present in .Net 3.0 and forward). > The example is available at > http://channel9vip.orcsweb.com/posts/jmazner/How-To-Use-Vistas-Power-Management-APIs-to-Be-A-Good-Laptop-Citizen/ > > Unfourtunately I need to get the status of the monitor in .Net 2.0. > > I have googled for hours about this. Does someone know of a way? > Managed or unmanaged > > Thanks > Marcus > >
