[fpc-pascal] fcl-extra ServiceManager doesn't seem to working with unelevated Windows account?

Reinier Olislagers reinierolislagers at gmail.com
Tue Oct 4 12:36:24 CEST 2011


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



More information about the fpc-pascal mailing list