Actually I have a problem with the Service Control Manager.
Does anybody have some experience with this and knows
how to overcome such a problem without restarting?
There is a service already there from the beginning of the
session. It is dependent on some group and has start set
to manual, however there is no service of that group already
there. Then I install such service through an INF and because
it has no way to set the Group properly (except manual AddReg),
I do it after the service is installed by the code which does it
through the ChangeServiceConfig which goes through SCM.
Then I start this new service (kernel driver).
But when I try to start the service dependent on the driver’s group
I always get the ERROR_SERVICE_DEPENDENCY_FAIL.
And everything is OK after restart.
So I’m asking: WHY?
There is already at least one service of the dependency group
started and the group was set through the SCM itself, so it should
know about it and the service should start without problem.
I have tested it on Windows 2000.
Thanks for anything which will throw a light on this strange problem.
Paul
Is there really no one who can answer this question?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@compelson.com
Sent: Tuesday, March 05, 2002 9:39 PM
To: NT Developers Interest List
Subject: [ntdev] Problem with SCM and its caching
Actually I have a problem with the Service Control Manager.
Does anybody have some experience with this and knows
how to overcome such a problem without restarting?
There is a service already there from the beginning of the
session. It is dependent on some group and has start set
to manual, however there is no service of that group already
there. Then I install such service through an INF and because
it has no way to set the Group properly (except manual AddReg),
I do it after the service is installed by the code which does it
through the ChangeServiceConfig which goes through SCM.
Then I start this new service (kernel driver).
But when I try to start the service dependent on the driver’s group
I always get the ERROR_SERVICE_DEPENDENCY_FAIL.
And everything is OK after restart.
So I’m asking: WHY?
There is already at least one service of the dependency group
started and the group was set through the SCM itself, so it should
know about it and the service should start without problem.
I have tested it on Windows 2000.
Thanks for anything which will throw a light on this strange problem.
Paul
You are currently subscribed to ntdev as: xxxxx@compelson.com
To unsubscribe send a blank email to %%email.unsub%%
Eh, you haven’t noticed yet this kind of questions (rare and complicated
problems) aren’t answered here? Try some beginners one 
Never seen this problem so no answer; I would start play with sc utility and
try mics config changes of dependent service. Maybe SCM would reset the
cache.
Best regards,
Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]
Is there really no one who can answer this question?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx]On Behalf Of xxxxx@compelson.com
>
> Sent: Tuesday, March 05, 2002 9:39 PM
> To: NT Developers Interest List
> Subject: [ntdev] Problem with SCM and its caching
>
>
> Actually I have a problem with the Service Control Manager.
> Does anybody have some experience with this and knows
> how to overcome such a problem without restarting?
>
> There is a service already there from the beginning of the
> session. It is dependent on some group and has start set
> to manual, however there is no service of that group already
> there. Then I install such service through an INF and because
> it has no way to set the Group properly (except manual AddReg),
> I do it after the service is installed by the code which does it
> through the ChangeServiceConfig which goes through SCM.
> Then I start this new service (kernel driver).
>
> But when I try to start the service dependent on the driver’s group
> I always get the ERROR_SERVICE_DEPENDENCY_FAIL.
> And everything is OK after restart.
>
> So I’m asking: WHY?
> There is already at least one service of the dependency group
> started and the group was set through the SCM itself, so it should
> know about it and the service should start without problem.
>
> I have tested it on Windows 2000.
>
> Thanks for anything which will throw a light on this strange problem.
> Paul
>
> —
> You are currently subscribed to ntdev as: xxxxx@compelson.com
> To unsubscribe send a blank email to %%email.unsub%%
>
> —
> You are currently subscribed to ntdev as: michal.vodicka@st.com
> To unsubscribe send a blank email to %%email.unsub%%
></mailto:xxxxx>