http://www.delphi32.com/info_facts/faq/faq_349.asp
When using the TRegistry component under NT, a user with less than "administrator" 
rights is unable to access information stored in the HKEY_LOCAL_MACHINE. How can I 
work around this?    


The problem is caused by the fact that TRegistry (and the derived TRegInifile) always 
opens a key with KEY_ALL_ACCESS, even if only KEY_READ would be needed. You can avoid 
this by going back to using the API registry functions (RegOpenKey et al.), or create 
a new class from the TRegistry component, and change the new TRegistry class to add an 
access property.


 

-----Original Message-----
From: Robert Martin [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 March 2003 1:55 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Registry entries under NT,XP


On Win NT machines you have to have admin rights for the app to work using
HKEY_LOCAL_MACHINE.  This is a real pain.


Rob

Software engineer
Wild Software Ltd
Ph 03 377-0495
----- Original Message -----
From: "Kyley Harris" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 1:29 PM
Subject: RE: [DUG]: Registry entries under NT,XP


use
HKEY_LOCAL_MACHINE for the globals, or any global defaults where you can
then put the same key structure under HKEY_CURRENT_USER as an override
-----Original Message-----
From: Paul Lowman [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 March 2003 8:46 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Registry entries under NT,XP


Can anyone enlighten me as to the best approach to the following problem:

An application is used be several users on an XP machine and needs to keep
both user specific options in the registry as well as global settings that
affect all users. Currently the entries are stored in the
HKEY_CURRENT_USER\Software key. The app must also run on both NT,XP as well
as Win9x,ME systems.

Any ideas welcomed

Paul Lowman
Lowman Consulting Ltd.

[EMAIL PROTECTED]

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to