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

Catching a power state change... (specifically entering sleep)

P: n/a
Hello,

I, as well as suspecting many others, am having an issue when I
attempt to enter sleep mode in Vista.
If any program is connected to the internet (AOL Instant Messenger for
instance), and I go to enter Sleep mode; Vista will automatically
leave Sleep mode immediately.

I believe this is caused by the fact that Sleep attempts to disconnect
AIM, then AIM attempts to reconnect; thrwarting Vista's attempt to
sleep.

I have found documentation on how to send the PC into Sleep mode, but
can not find documentation on how to detect the power state change.
Does anyone know how to detect the power state change?

There are various other methods that can be used; such as running
interference on my sleep button, or hax0ring the "power" button on the
start menu; both to launch a script or program that will close
whatever programs then execute a sleep. I'd rather actually learn how
to detect when the PC is going into sleep mode.
Thanks very much!
Matt

Mar 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Mar 5, 5:41 pm, "Matt Brown - identify" <MatthewBr...@gmail.com>
wrote:
Hello,

I, as well as suspecting many others, am having an issue when I
attempt to enter sleep mode in Vista.
If any program is connected to the internet (AOL Instant Messenger for
instance), and I go to enter Sleep mode; Vista will automatically
leave Sleep mode immediately.

I believe this is caused by the fact that Sleep attempts to disconnect
AIM, then AIM attempts to reconnect; thrwarting Vista's attempt to
sleep.

I have found documentation on how to send the PC into Sleep mode, but
can not find documentation on how to detect the power state change.

Does anyone know how to detect the power state change?

There are various other methods that can be used; such as running
interference on my sleep button, or hax0ring the "power" button on the
start menu; both to launch a script or program that will close
whatever programs then execute a sleep. I'd rather actually learn how
to detect when the PC is going into sleep mode.

Thanks very much!

Matt
http://msdn2.microsoft.com/en-us/library/aa373170.aspx

Mar 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.