473,387 Members | 1,283 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Detect hibernation

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
Jul 21 '05 #1
2 2464
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#.


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.
Jul 21 '05 #2
Mattias Sjögren wrote:
I haven't tried this myself, but check if the
Microsoft.Win32.SystemEvents.PowerModeChanged event fires.


Looks good - thanks!
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Michel Bany | last post by:
I am trying to parse responseXML from an HTTP request. var doc = request.responseXML; var elements = doc.getElementsByTagName("*"); the last statement returns an empty collection when running from...
3
by: steve | last post by:
Is there anyway my AP can detect system goto Sleep, Hibernation mode, switch user and logoff?
2
by: johnsto | last post by:
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
0
by: mike | last post by:
Sound problems resuming from Hibernation I have an MP3 player that plays MP3s off DVD. Uses mci sendstring errreturn = mciSendString("play sound", rs, 128, cb) Been working great for...
0
by: =?Utf-8?B?QmFjayA5?= | last post by:
Hello, Is there any way of c# programming to disable the hibernation of XP system? If no, is there any Win32 API to handle the subject? TIA
3
by: =?Utf-8?B?VGFt?= | last post by:
hi, I have a serious problem with my computer. Whenever i start any games on fullscreen, (like counter strike or WOW) I get a pop up saying "hibernation is unchecked. do you want to hibernate?"...
0
by: =?Utf-8?B?c2hpbmlnYW1pYm9p?= | last post by:
i put my pc into hibernation. Upon restarting the computer, the words "resuming windows" appear, then a black screen comes up and thats all. I am on a Windows Vista Home Premium.
1
by: =?Utf-8?B?cm9iNjUz?= | last post by:
I was handed a Compaq laptop that has Windows XP Home installed and is current to SP3. The computer has been functioning fine but today the owner, an elderly relative, told me pressed a couple of...
1
by: Jake | last post by:
I would like to start new application when Windows is resuming from Stand By or Hibernation. Just like Startup folder or SOFTWARE/Microsoft/Windows/Currentversion/Run registry entry. Any...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.