We have an application that communicates with a PLC in the field. All of the
values from the PLC are written to registry keys under
hkey_current_user\software\vb and vba programming\application
name\subkey\value.

We were trying to access the registry key directly using asp. I found a
tool to access registry, but for some reason it can't read or write values to
hkey_current_user. So, we wrote and active x dll that using gettsetting and
savesetting to read and write to the registry, and we just use the object in
ASP. Unfortunately, it writes to HKEY_USERS\.DEFAULT\Software\ and then
creates the vb and vba programming\application name\subkey\key. It reads and
writes to this area just fine, but well that is not where we want to read and
write to. We rewrote the dll to specify the HKEY_Current_User area, but it
still behaves the same way. Any help or direction on this would be
appreciated. Thanks in advance for the help.

Re: reading and writing to HKEY_CURRENT_USER\Software\vb and vba by BP

BP
Sat Feb 05 16:59:19 CST 2005

Try vb scripting news group.

"Roundy" <Roundy@discussions.microsoft.com> wrote in message
news:DCF73AC7-5E36-48A8-A51B-09401E6F26C1@microsoft.com...
> We have an application that communicates with a PLC in the field. All of the
> values from the PLC are written to registry keys under
> hkey_current_user\software\vb and vba programming\application
> name\subkey\value.
>
> We were trying to access the registry key directly using asp. I found a
> tool to access registry, but for some reason it can't read or write values to
> hkey_current_user. So, we wrote and active x dll that using gettsetting and
> savesetting to read and write to the registry, and we just use the object in
> ASP. Unfortunately, it writes to HKEY_USERS\.DEFAULT\Software\ and then
> creates the vb and vba programming\application name\subkey\key. It reads and
> writes to this area just fine, but well that is not where we want to read and
> write to. We rewrote the dll to specify the HKEY_Current_User area, but it
> still behaves the same way. Any help or direction on this would be
> appreciated. Thanks in advance for the help.



Re: reading and writing to HKEY_CURRENT_USER\Software\vb and vba by Roundy

Roundy
Mon Feb 07 13:19:07 CST 2005

My questtion also relates to IIS what user runs processes that are using the
dll if I am using ASP to access it. I also posted in the ASP forum.

"BP" wrote:

> Try vb scripting news group.
>
> "Roundy" <Roundy@discussions.microsoft.com> wrote in message
> news:DCF73AC7-5E36-48A8-A51B-09401E6F26C1@microsoft.com...
> > We have an application that communicates with a PLC in the field. All of the
> > values from the PLC are written to registry keys under
> > hkey_current_user\software\vb and vba programming\application
> > name\subkey\value.
> >
> > We were trying to access the registry key directly using asp. I found a
> > tool to access registry, but for some reason it can't read or write values to
> > hkey_current_user. So, we wrote and active x dll that using gettsetting and
> > savesetting to read and write to the registry, and we just use the object in
> > ASP. Unfortunately, it writes to HKEY_USERS\.DEFAULT\Software\ and then
> > creates the vb and vba programming\application name\subkey\key. It reads and
> > writes to this area just fine, but well that is not where we want to read and
> > write to. We rewrote the dll to specify the HKEY_Current_User area, but it
> > still behaves the same way. Any help or direction on this would be
> > appreciated. Thanks in advance for the help.
>
>
>