Page 1 of 1

Using queryRegistry with entries with "\"

Posted: Thu Oct 14, 2010 4:28 pm
by hwbehrens
I took a look at this post, but I'm a complete newbie when it comes to the Windows registry, so it went completely over my head.

I am trying to access the data located in the following registry entry:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM\Device\VCP0

You can see a screenshot of my RegEdit here.

However, when I use the following command:

Code: Select all

put queryregistry("HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM\Device\VCP0")
I just get an empty string. However, you can see in the screenshot that there is definitely a value in there.

Any ideas on what I'm doing wrong? I'm guessing the issue is because my key includes "\" in the name, but I'm not sure what to do instead. I tried using the 'queryRegistry(keyPath,typeVariable)' form as well, but my typeVariable just got populated by garbage data (ƒìS‹\$ UV‹s35 rb).

Re: Using queryRegistry with entries with "\"

Posted: Tue Nov 16, 2010 2:13 am
by SirWobbyTheFirst
Hi hwbehrens

I don't think the standard Win32 API (Which is what almost every Windows application uses except for the boot up ones) supports using \Device\VCP0 as a registry value name. According to Microsoft that is an illegal path in the Win32 API and thus any attempts from Rev will cause Windows to think there is a sub key called Device underneath SERIALCOMM with the value VCP0.

There is nothing anybody can do about it really. RegEdit can read because it uses other APIs asside from the Win32 in order to access the registry nuts and bolts.

Hope this helps dude. Michael.