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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to