Capture resume from sleep event / wake up

G

Guest

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.
 
C

Cor Ligthert

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 
G

Guest

Excellent, I will look in to it, thanks much!!

Jay B. Harlow said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top