Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delete a Legacy Service?

1 view
Skip to first unread message

Quentin David Jones

unread,
Dec 4, 2006, 9:28:19 PM12/4/06
to
Greetings,

Making some progress with my service development...

But now I have somehow ended up with a legacy service that I can't seem to
delete...

It shows up under
HKLM\system\ControlSet001\Enum\Root\LEGACY_MyService

I cannot delete it, even in Safe Mode...
How do I fix this pls?

Q.


Quentin David Jones

unread,
Dec 4, 2006, 9:32:37 PM12/4/06
to
Ah,
now I see...

Q.


"Quentin David Jones" <quenti...@romteck.com.spamprotect> wrote in
message news:4574d945$0$28920$5a62...@per-qv1-newsreader-01.iinet.net.au...

Lucian Wischik

unread,
Dec 4, 2006, 10:53:42 PM12/4/06
to
"Quentin David Jones" <quenti...@romteck.com.spamprotect> wrote:
>> But now I have somehow ended up with a legacy service that I can't seem to
>> delete... under HKLM\system\ControlSet001\Enum\Root\LEGACY_MyService

>> I cannot delete it, even in Safe Mode... How do I fix this pls?
>
>Ah, now I see...

Then tell us the answer! I mean, if you were hoping other people would
explain it to you, then you should in turn explain it to future people
who'll ask the same question (perhaps through google)...

--
Lucian

Quentin David Jones

unread,
Dec 4, 2006, 11:12:00 PM12/4/06
to
Sure,
(but it was a simple error :-)

The key I mentioned is like a runtime copy,
there is another obvious key listing the services -
I deleted that and all was fine.

Other things I am finding out about services:
* SCM does not auto-refresh (have to click refresh button)
* The Interactive property/parameter is required for plain localhost use.
* The StartName property/parameter is the user ACCOUNT name (required with
pwd if not localhost.)

I think where I first went wrong was in renaming my entities to better
names - that seems to have left the orphan legacy service.

Q.


"Lucian Wischik" <lu...@wischik.com> wrote in message
news:c7r9n2herar5jpb0l...@4ax.com...

bejoy

unread,
Dec 5, 2006, 12:47:57 AM12/5/06
to
check whether you are sending proper notification to SCM like
SERVICE_CONTROL_STOP
and so on before deleting the service.
Make sure that the status of service is SERVICE_STOPPED before deleting
the service
should handle SCM notification correctly for the service by yourself in
the program.can get a lot samples in net how u can notify SCM correctly
the status of your service

Quentin David Jones

unread,
Dec 5, 2006, 1:37:35 AM12/5/06
to
Thanks bejoy :-)
Yes, I may have missed that issue

On my way now, moving on to sockets ...

Q.


"bejoy" <bejoy....@gmail.com> wrote in message
news:1165297677.7...@f1g2000cwa.googlegroups.com...

0 new messages