Detect hibernation
Messages   Related Types
This message was discovered on microsoft.public.dotnet.general.

Post a new message to this list...

johnsto
Anyone know if it's possible for a .NET program to detect if the system
has just come out of hibernation? If so, how? :) I'm using C#.

TIA
Reply to this message...
 
    
Mattias Sjögren
[Original message clipped]

I haven't tried this myself, but check if the
Microsoft.Win32.SystemEvents.PowerModeChanged event fires.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Reply to this message...
 
    
johnsto
Mattias Sjögren wrote:
[Original message clipped]

Looks good - thanks!
Reply to this message...
 
 
Microsoft.Win32.SystemEvents




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com