Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading registry key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Reading registry key
Divers
Thread ID:
01672138
Message ID:
01672138
Vues:
98
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
Répondre
Fil
Voir

Click here to load this message in the networking platform