Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading registry key
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Reading registry key
Miscellaneous
Thread ID:
01672138
Message ID:
01672138
Views:
99
Hi there,

I am using Rick Strahls class rsregistry trying to read a key from the registry. I want to determine in which path an active-x-dll is installed.
In the registry I find the following key (for an active-x-dll:

"HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{EF8D3482-503F-11D8-B851-0002E3178697}\InProcServer32 "

In code I determine the class-id and then try the following:
#DEFINE HKEY_CLASSES_ROOT -2147483648
...
cPfad = ""
lcClassId = loAPI.readregistrystring(HKEY_CLASSES_ROOT,lcProgId + "\CLSID","")   && Taken from an example
if IsNull(lcClassId)
   lcClassId = ""
ELSE
  * I get the correct classid
   cRSString = "Wow6432Node\CLSID\" + lcClassId  
   cPfad = loApi.ReadRegistryString(HKEY_CLASSES_ROOT,;
                               cRSString,;
                               "InProcServer32")   
endif
RETURN cPfad
But all I get is a Null-Value. What am I doing wrong?

Best regards

Thomas
Reply
Map
View

Click here to load this message in the networking platform