G
gregory_may
According to this article, I cant change "CanStop" on the fly!!!
http://msdn.microsoft.com/library/d...erviceprocessservicebaseclasscanstoptopic.asp
So, how can I enable/disable the ability for a user to kill my service (Via
Task Manager) on the fly?
I would prefer not to tweak the regestry settings that permit Task manager
from be available to a user. I have not had good luck down this path & task
manager needs to be available for other reasons.
I was hoping for a way to disable someone from killing my service if they
dont have the Administrative Privledge.
If I understand things correctly, the thread that a user will be running
under is not known at the time the service starts. Users can log off/On
with different privledges.
I was also unsuccessfull at navigating the windows station to deturmine who
is trying to kill the service. This article covers all the functions
relating to figuring out who is logged in. With fast user switching under
XP, several users can actually be logged into the PC at one time.
http://msdn.microsoft.com/library/d...base/window_station_and_desktop_functions.asp
http://msdn.microsoft.com/library/d...erviceprocessservicebaseclasscanstoptopic.asp
So, how can I enable/disable the ability for a user to kill my service (Via
Task Manager) on the fly?
I would prefer not to tweak the regestry settings that permit Task manager
from be available to a user. I have not had good luck down this path & task
manager needs to be available for other reasons.
I was hoping for a way to disable someone from killing my service if they
dont have the Administrative Privledge.
If I understand things correctly, the thread that a user will be running
under is not known at the time the service starts. Users can log off/On
with different privledges.
I was also unsuccessfull at navigating the windows station to deturmine who
is trying to kill the service. This article covers all the functions
relating to figuring out who is logged in. With fast user switching under
XP, several users can actually be logged into the PC at one time.
http://msdn.microsoft.com/library/d...base/window_station_and_desktop_functions.asp