access the display idle timer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to be know when the display goes into "suspend." It seems there is no
accurate way to query the state of the monitor so I am left with trying to
track the idleness of the system and compare that to the monitor idle time
out. There seem to be a few references on msdn documentation to system and
display idle timers but no mention of how to access them. Is there a way to
get this from the .net framework? I assume it would involve an api call. I
have been trying to use callntpowerinformation() to get the
SYSTEM_POWER_INFORMATION but with no luck. I have never used the windows API
before so any vb.net code samples using the api to get the display idel timer
would be greatly appreciated.
 
Research handling the 'Microsoft.Win32.PowerModeChanged' event. This looks
like what you want, but I have no experience with it, and a quick look at the
documentation left me puzzled. Good luck.
 
Ya, I do use the power mode change event but it does not fire when the
monitor goes into standby. Thanks though.

Paul
 
Back
Top