Intercept shutdown?
-
I'm looking for a way to intercept the shutdown/log off of a computer to run my own app then let the computer continue to shutdown/log off. Is this possible and how?
| +-- JDMils | +-- VB6 +-- VB Dot Net |
One obvious thing to do is to run your code ( it has to be running no matter what ) and just perform your action in your programs close event handler.
-
One obvious thing to do is to run your code ( it has to be running no matter what ) and just perform your action in your programs close event handler.
The shutdown/log off action is started by the user. My app needs to detect when this happens then run an external application. Upto this point, I am OK. When the external application finishes, I need my app to continue with the shutdown/logoff. How do I detect whether the computer was originally shutting down or logging off? Another question, is once my application completes, and it issues a shutdown/log off to continue the original request (by the user) to shutdown/log off, how do I stop my app from running again!? LoL Thanks
| +-- JDMils | +-- VB6 +-- VB Dot Net |