Hello all,
I figured out my problem...
It was because the process that I was launching from my service had a
winform which I did an override of the close to minimize to the system tray
instead of close out. I found that if all the applications do not close on
your desktop, the operating system will not shutdown... problem resolved...
"Shawn Buchanan-Cook" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have created a windows service that executes a application (that has a
> user interface), and therefore I have the "Allow service to interact with
> desktop" checked...
>
> I have found that because of the "Allow service to interact with desktop"
> flag being turned on, I can not restart/reboot my system....
>
> I do have the CanShutdown flag in my service set to "true"...
>
> I have noticed that if I turn off the "allow service to interact with
> desktop" flag, I am able to restart/reboot my system.... but, I need this
> flag turned on...
>
> Can anyone help my with this problem?
>
> Thank you
>
>
|