[DUG] Detecting admin privilege

Phil Scadden p.scadden at gns.cri.nz
Mon May 8 14:33:04 NZST 2006


I want to detect where current user of program has write access to
the hkey_local_machine hive. (so I can choose to display the a settings
option on a menu). Short of attempt a write and then read, is there another
way to detect this?

----------------------------------------------------------
Phil Scadden, Institute of Geological and Nuclear Sciences
764 Cumberland St, Private Bag 1930, Dunedin, New Zealand
Ph +64 3 4799663, fax +64 3 477 5232



More information about the Delphi mailing list