ColdPhreze
Programmer
- Apr 15, 2002
- 93
Does anyone know if it is possible to tell if Windows was booted up into from a shutdown to Standby or Hibernate?
I'm having problems with the serial port and if the pc was shutdown to standby or hibernate, and then brought back up, my software doesn't know that anything happened so it doesn't know to reopen the serial port, so an error occurs. I need to avoid the error. I can't simply try to reopen the serial port on error as several other things could cause the error that all need to be detected and have an error thrown.
If I can simply detect that the system just rebooted from standby or hibernate, then I can resolve this in my software.
I'm using VB.net 2003 and it's running on Win XP SP2.
Thanks a LOT for any help!
I'm having problems with the serial port and if the pc was shutdown to standby or hibernate, and then brought back up, my software doesn't know that anything happened so it doesn't know to reopen the serial port, so an error occurs. I need to avoid the error. I can't simply try to reopen the serial port on error as several other things could cause the error that all need to be detected and have an error thrown.
If I can simply detect that the system just rebooted from standby or hibernate, then I can resolve this in my software.
I'm using VB.net 2003 and it's running on Win XP SP2.
Thanks a LOT for any help!