> I have an ISAPI dll and for the life of me, I can't get it to 
> read a value from HKEY_LOCAL_MACHINE.  I have checked the spelling, I can 
> set the root key but as far as going to read from a specific key, it fails

> to process OpenKey.  I changed to HKEY_CURRENT_USER under suspicion that 
> perhaps IIS would allow me access to those keys but still no luck.  On 
> the IIS side of things, I have enabled full access to the scripts
directory 
> for execution but no joy still.  Has anyone done this before or have 
> another option?  
I am not doing web development at the moment & don't have IIs running but
from what I recall, IIs processes runs as user IIS_UNKNOWN (or something).
Try opening up the User manager on the web server machine & giving that user
Admin rights. Your DLL should be able to read then.  ONly problem of course
is what to do on a live machine (IIS having registry rights is a bad thing).

Do you really need to access the registry?

> At the moment I don't require the BDE, and so a table with a single value
> (which I could access via an alias) is pretty extreme.  An ini file in the
> local directory would do, but the TISAPIApplication object  does not have
a
> path property.  Would GetCurrentDirectory change if the user is also
playing
> with Explorer?  Could I bodge it and instantiate TApplication an extract
the
> path from that?
Not sure what you are trying to do here but AFAIK you don't need a path -
the current directory will always be the one from which the DLL is run
from...
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to