Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to read registry value
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Trying to read registry value
Divers
Thread ID:
00705790
Message ID:
00705790
Vues:
59
I'm having problems reading a registry value.

At
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Categories
Is MasterList which has a hex value

Using the code below, the GetKeyValue method always returns 234 instead of putting the value into lcUser. Any ideas what I am doing incorrectly? IsKey() says the key is valid.
#DEFINE HKEY_LOCAL_USER -2147483647
loReg = NEWOBJECT("Registry", HOME() + "ffc\registry")
? loReg.iskey('Software\Microsoft\Office\10.0\Outlook\Categories',HKEY_LOCAL_USER)
IF loReg.OpenKey('Software\Microsoft\Office\10.0\Outlook\Categories',HKEY_LOCAL_USER) = 0
	lcUser = SPACE(100)
	? loReg.GetKeyValue('MasterList',&lcUser)
ENDIF
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform