By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,557 Members | 1,603 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,557 IT Pros & Developers. It's quick & easy.

Capture resume from sleep event / wake up

P: n/a
I am asking this question again in hopes that someone can answer it this time.

Does anyone know if there is a way to have an event fire when a computer
resumes / wakes up from sleep mode (assuming the app is running before and
after sleep mode is initiated). I am not talking about threading, I mean
sleep mode of the computer hardware like waking up from S2 or S3 ACPI.

The application is a vb.net app that is running before and after the machine
is in sleep mode.
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Blaxer,

What are you asking, there should be a process, that is uses the CLR be
awake on startup while it is not even JIT compiled at that moment.

For this question is in my opinion with the Net tools C++ the first tool to
look for to solve your solution. (And than it is not really a net solution
however Win32).

You can for that ask this better first in my opinion in a special Win32
newsgroup what is the need for that.

There are a lot they are named

microsoft.public.win32.*

I hope this helps anyway?

Cor


Nov 21 '05 #2

P: n/a
Blaxer,
Have you tried handling the Microsoft.Win32.SystemEvents.PowerModeChanged
event and check PowerModeChangedEventArgs.Mode for PowerModes.Resume?

PowerModes also includes Suspend & StatusChange values.

Hope this helps
Jay

"Blaxer" <Bl****@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
I am asking this question again in hopes that someone can answer it this
time.

Does anyone know if there is a way to have an event fire when a computer
resumes / wakes up from sleep mode (assuming the app is running before and
after sleep mode is initiated). I am not talking about threading, I mean
sleep mode of the computer hardware like waking up from S2 or S3 ACPI.

The application is a vb.net app that is running before and after the
machine
is in sleep mode.

Nov 21 '05 #3

P: n/a
Excellent, I will look in to it, thanks much!!

"Jay B. Harlow [MVP - Outlook]" wrote:
Blaxer,
Have you tried handling the Microsoft.Win32.SystemEvents.PowerModeChanged
event and check PowerModeChangedEventArgs.Mode for PowerModes.Resume?

PowerModes also includes Suspend & StatusChange values.

Hope this helps
Jay

"Blaxer" <Bl****@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
I am asking this question again in hopes that someone can answer it this
time.

Does anyone know if there is a way to have an event fire when a computer
resumes / wakes up from sleep mode (assuming the app is running before and
after sleep mode is initiated). I am not talking about threading, I mean
sleep mode of the computer hardware like waking up from S2 or S3 ACPI.

The application is a vb.net app that is running before and after the
machine
is in sleep mode.


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.