Jump to content
Sign in to follow this  
Champak

Question about computer shutdown

Recommended Posts

Champak

When you force the shutdown of the computer/windows, does it just force exit an autoit program, or will a program go through its exit function? I'm leaning towards the first. So if that's the case, is there a way to set a program up to see if windows is shutting down so I can automatically exit the program before windows forces it to exit?

Share this post


Link to post
Share on other sites
mikell

Searching the forum for 'shutdown' in topic titles brings this out :

Share this post


Link to post
Share on other sites
Champak

I just came across a different function. OnAutoItExitRegister. Is it better/safer to use this, or the winapi_shutdown functions to call my exiting function?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×