From: Jarmo M. <ja...@mu...> - 2002-07-20 15:13:41
|
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. 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. BTW, RPC is unknown territory to me. JMu ----- Original Message ----- From: "Eric Kohl" <ek...@rz...> To: <rea...@li...> Sent: Saturday, July 20, 2002 4:52 PM Subject: Re: [ros-kernel] Service.exe > > "Jarmo Muukka" <ja...@mu...> wrote: > > > > The protocol will matter. Have you ever thought that Win NT and > > ReactOS services would have to communicate with each other? Say > > you have a ReactOS machine and you want to start service on > > Windows 2000 machine. ReactOS client part have to connect to W2K > > machine and W2K server part have to understand what client is > > asking and ros have to understand W2K replies. > > The communication between a SCP and the SCM uses RPC, not pipes. The contol > pipes are only used for communication between the SCM and the SPs. That's > why the pipe protocol doesn't matter. Samba already implements the RPC > protocol. > > When you use a local SCP to start a service on a remote machine, you tell > the SCM on the remote machine to start the service. > > Eric > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > reactos-kernel mailing list > rea...@li... > https://lists.sourceforge.net/lists/listinfo/reactos-kernel > |