From: Eric K. <ek...@rz...> - 2002-07-20 18:05:18
|
"Jarmo Muukka" <ja...@mu...> wrote: > Does it go something like this? My SCP calls OpenSCManager in > advapi32.dll. OpenSCManager calls "some procedure" on SCM on > remote computer through RPC. Remote computer opens its database > and return "some info" to the caller. > > If I have service open, my SCP calls StartService. StartService in > advapi32.dll calls "some procedure" on remote computer through > RPC. Remote computer's SCM starts the process (if not running) and > creates/resumes a thread of the service. Exactly! > Now, where are the pipes needed for? I don't see need for pipes > between SCM server and SP. They are in the same machine.... Now I > got it, I think. StartServiceCtrlDispatcher is executing in > address space of the service process. Services.exe runs in another > address space. When services.exe receives a RPC, it communicates > with SP (i.e. StartServiceCtrlDispatcher) with pipes. Does it? So > you can implement it as you like. Exactly! |