<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I didn't realize there was 
a&nbsp;<SPAN>TRegistry</SPAN>.Access until a bit later.&nbsp; This can be used 
set to KEY_READ with&nbsp;the OpenKey method, and it should work 
fine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ross.</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=bigal@xtra.co.nz href="mailto:bigal@xtra.co.nz">Alistair George</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz 
  href="mailto:delphi@ns3.123.co.nz">NZ Borland Developers Group - Delphi 
  List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 13, 2005 4:26 PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [DUG] quick registry 
  question</DIV>
  <DIV><FONT face=Arial size=2></FONT><BR></DIV>Wow, that is a major 
  <SPAN>isnt</SPAN> it? I have <SPAN>openkey</SPAN> used in several of my 
  programs. <BR>Can <SPAN>TRegistry</SPAN>.Access change the non-administrator 
  privilege?<BR>Alistair+<BR><BR>Ross Levis wrote: 
  <BLOCKQUOTE cite=mid017301c5575b$699aa4b0$6900a8c0@levis4 type="cite">
    <META content="MSHTML 6.00.2900.2627" name=GENERATOR>
    <STYLE></STYLE>

    <DIV><FONT face=Arial size=2>Am I correct that TRegistry.OpenKey will fail 
    on a HKLM key for a non-administrator user even if the program is&nbsp;only 
    reading the key and not writing?&nbsp; This seems to be the 
    case.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Should I only be using 
    TRegistry.OpenKeyReadOnly?</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><FONT color=#000000>Cheers,</FONT></FONT></DIV>
    <DIV><FONT face=Arial size=2><FONT 
  color=#000000>Ross.</FONT></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>