In our previous episode, Bart said: > > I thought of trying to write to a "protected" location (/etc/something > on linux, C:\ProgramData\something on Windows), but the problem is > that Windows virtualizes these calls (it'll end up somewhere lse, > where your program will never find it again), so writing will succeed > even if user has no administrator rights.
For windows there is winutils.iswindowsadmin(), for unix likes there is fpgeteuid (which should return zero for root). _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal