Link to home
Start Free TrialLog in
Avatar of Basicfarmer
BasicfarmerFlag for United States of America

asked on

sysInfo.ocx cannot get events

Experts, i am working on an application where i will be using the setSuspendState api function to put the pc into sleep mode is certain cases. I am trying to use the sysInfo.ocx control to get the events when the pc actually goes into sleep mode and when it wakes up. If i put the computer to sleep through the start menu i get the events. But when i do it programatically i do not get the events. Does anyone know a way around this? I have also tried subclassing to get the WMPower stuff and then i only get the awake message but still never get the sleep message.
ASKER CERTIFIED SOLUTION
Avatar of John Gates, CISSP, CDPSE
John Gates, CISSP, CDPSE
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Basicfarmer

ASKER

Perfect, thanks...