accessing Service Control Manager from a kernel driver

sorry, it was implicitly in my mind and I omitted to spell out “from a
kernel Driver” !

does anybody know whether I can access the Service Control Manager (SCM)
from kernel mode driver logic,
under NT4, to be able to start/stop a service which is cooperating with
my kernel mode driver ?

if so, what calls can I use ?

thanks,

Bob.

Bob Dehning.
ARtI - Associates for Real-time Information
tel: +27 (11) 316-1426, fax: 316-1095
cell: (082) 651-1501

Hello,

AFAIK it is not possible. The user mode calls such as
OpenSCManager, OpenService residing in ADVAPI32.DLL
makes direct RPC call to services.exe process.

What you can do is, have some user mode process which
will do this job and have your driver communicate with
this program whenever it wants to start/stop services.

-Prasad

— Bob Dehning wrote:
> sorry, it was implicitly in my mind and I omitted to
> spell out “from a
> kernel Driver” !
>
> does anybody know whether I can access the Service
> Control Manager (SCM)
> from kernel mode driver logic,
> under NT4, to be able to start/stop a service which
> is cooperating with
> my kernel mode driver ?
>
> if so, what calls can I use ?
>
> thanks,
>
> Bob.
> –
> Bob Dehning.
> ARtI - Associates for Real-time Information
> tel: +27 (11) 316-1426, fax: 316-1095
> cell: (082) 651-1501
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> $subst(‘Email.Unsub’)
>
>

=====
Prasad S. Dabak
Director of Engineering, Windows NT/2000 Division
Cybermedia Software Private Limited
http://www.cybermedia.co.in
Co-author of the book “Undocumented Windows NT”
ISBN 0764545698

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com