Hi,
I am developing a windows service in .Net 3.5 in C#. This service is used to periodically invoke a windows form. Now I would like to hook an event to the service so that when the user tries to shut down the system, then also the windows form will appear, preventing the shut down process. User can then only make the system shutdown through the windows application.
Is there a way to do this in a windows service?
Edit
I want this to be done in Win 2000 and Win XP only.
Thanks