troubleshooting Question

How to get informed when a computer goes into hibernation

Avatar of Stef Merlijn
Stef MerlijnFlag for Netherlands asked on
Delphi
6 Comments1 Solution447 ViewsLast Modified:
Hi,

Before a computer goes into hibernation I want to close some connections and my application.
Is there a way to get informed just before the computer starts hibernating and shut down my application just before that?

The reason I need this is because hibernation can shutdown SQL Server connection and or network connections. And that could give problems in my application if it is used after the computer wakes up from hibernation.

Some code example is very much appreciated.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros