G
Guest
Guest
Archived from groups: microsoft.public.windowsnt.misc (More info?)
I am trying to develop an NT Service, novice in the field and running
into following problems.
Let me simplify all the steps to explain problem i am facing, please
let me know if i am doing anything wrong
I create a NT Service using Visual Studio 6 ATL Com wizard without a
single line of my own code added here. Only thing i change is remove
command from Project/Settings/Custom Build that re-registers the
service. After that I compile the project. Let say name of the service
is MyService. I use following commands to register and unregister
service.
MyService -Service
... start and stop the service
MyService -Unregserver
after this unregserver command this service goes in "Diabled" mode as
shown in SCM and now if i want to re-register the service i can
"Service cannot be deleted" message box. To only way to register the
service again is to logoff the box.
Since I haven't added any of my code in this test project, there
shouldn't be case of any dangling handle.
Any ideas?
I am trying to develop an NT Service, novice in the field and running
into following problems.
Let me simplify all the steps to explain problem i am facing, please
let me know if i am doing anything wrong
I create a NT Service using Visual Studio 6 ATL Com wizard without a
single line of my own code added here. Only thing i change is remove
command from Project/Settings/Custom Build that re-registers the
service. After that I compile the project. Let say name of the service
is MyService. I use following commands to register and unregister
service.
MyService -Service
... start and stop the service
MyService -Unregserver
after this unregserver command this service goes in "Diabled" mode as
shown in SCM and now if i want to re-register the service i can
"Service cannot be deleted" message box. To only way to register the
service again is to logoff the box.
Since I haven't added any of my code in this test project, there
shouldn't be case of any dangling handle.
Any ideas?
