On 4-10-2011 12:31, Sven Barth wrote: > Am 04.10.2011 12:22, schrieb Reinier Olislagers: >> Services.Connect; >> Services.Acces := SC_MANAGER_CONNECT; //Note typo in property. > > You need to set "Acces(s)", before calling "Connect", because the > connection API "OpenSCManager" is called inside "Connect" using the > access flags that were set. > > At least that's the only problem I see without testing it myself. > > Regards, > Sven Thanks, Sven,
Another "duh" moment. I had even already commented that Connect is trying to request all possible access by default. It works now. Regards, Reinier _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal