That works great thanks :) On 4 Feb 2016 22:53, "Jy V" <[email protected]> wrote:
> On Thu, Feb 4, 2016 at 8:57 PM, Richard Mace <[email protected]> > wrote: > >> On 4 February 2016 at 17:39, Jy V <[email protected]> wrote: >> >>> On Thu, Feb 4, 2016 at 5:41 PM, Richard Mace <[email protected]> >>> wrote: >>> XMLRAD stop a program registered as a service running following code, >>> >> >> So, would I run this code by creating a TProcess from within my service, >> to get it to "stop" my service? >> > > if you have the SvcHandle available inside your program since you are the > very own running service, > you can even skip OpenSCManagerA and OpenServiceA and stop the process > directly > calling ControlService(SvcHandle, SERVICE_CONTROL_STOP, Status) > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > >
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
