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

Sven Barth pascaldragon at googlemail.com
Tue Oct 4 12:31:06 CEST 2011


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



More information about the fpc-pascal mailing list