Possible Duplicate:
How to detect if windows is going to hibernate or suspend?
Can someone refresh my memory, from a standpoint of a program running on Windows there's no way to know if the system is entering a sleep mode or hibernating, correct? (I need to know the mode that the system entered, or was just resumed from.)