Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Oct : Get rights of registry entry

www.cryer.info
Managed Newsgroup Archive

Get rights of registry entry

Subject:Get rights of registry entry
Posted by:"Gunter Heuckeroth" (heuck..@elster.com)
Date:Fri, 6 Oct 2006 15:42:55

Hello,

does someone knows a way to detect the rights of a (currently logged in)
user on a registry entry (key or value)?
The simplest way seems to try reading or writing and catching any exception.

The reason behind is to detect if a user can modify a specific value and
allow him to change value (Edit field) or display him the value without
chance to edit (read only) if he has no "write access" rights.

thanks,
Gunter

Replies:

www.cryer.info
Managed Newsgroup Archive