Yup, I have the latest Delphi (5) and have applied the service pack.  OK, I
will try setting the access to read only and see what happens.

-----Original Message-----
From: Nic Wise [mailto:[EMAIL PROTECTED]]
Sent: Monday, 22 May 2000 09:56
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Accessing The Registry



> 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.

You need to either get the latest Delphi, which I think fixes it, or change
the registry unit/class so that when it opens it, it opens it READ ONLY not
read write. I've had this problem previously :)

> I changed to HKEY_CURRENT_USER under suspicion that perhaps IIS
> would allow me access to those keys but still no luck.

There is not "current user" under IIS - its the internal system user.

> 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?  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?

Nope, the users are unrelated. Try an ini file in a specific location, or
the registry.

>Could I bodge it and instantiate TApplication an
> extract the
> path from that?

No idea. you could try it, tho I doubt it would work.

N


--
Nic Wise - 021.676.418 / [EMAIL PROTECTED] / Inprise/Borland New Zealand
Is it not a foolish man, said little Woo, who keeps all his chickens in his
trousers?
For at best, will he not suffocate his chickens, and, and worst, will he not
disappoint the ladies in the village?  --Alexi Sayle

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to