M
mikemiller.innova
I developed a C# Windows App that requires a user to input their real
name and what they did to the server while they were online.
I am going to launch the app att shutdown via a logoff script.
I want to prevent the computer from logging off or shutting down until
the app is closed.
The best example I have is when you have an unsaved notepad.exe
document open and logoff or shutdown, an End Program dialog pops up
that says "The system cannot end this program because it is waiting for
a response from you". The computer will sit there forever waiting for
user response. I want that to happen with my app so they are forced to
enter data before the logoff/shutdown process continues.
How can I do this?
name and what they did to the server while they were online.
I am going to launch the app att shutdown via a logoff script.
I want to prevent the computer from logging off or shutting down until
the app is closed.
The best example I have is when you have an unsaved notepad.exe
document open and logoff or shutdown, an End Program dialog pops up
that says "The system cannot end this program because it is waiting for
a response from you". The computer will sit there forever waiting for
user response. I want that to happen with my app so they are forced to
enter data before the logoff/shutdown process continues.
How can I do this?