Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use registry.vcx to get default profile???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to use registry.vcx to get default profile???
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01009369
Message ID:
01009369
Vues:
56
I've tried the following code:
? oReg.IsKey('',[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles])

? oReg.OpenKey([Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles],[HKEY_CURRENT_USER]) == 0
The first line returns a .T.
The second line returns a .F.

I then tried this:
? oReg.OpenKey('',[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles]) == 0
This time I get a .T.
However, I then want to get the value of the DefaultProfile from the Profiles folder. I try this:
lcValue = ''
? oReg.GetKeyValue('DefaultProfile',@lcValue) == 0
I get .F. (I've also tried lcValue = space(255)) Anyhow, I just can't seem to be able to get that value from the Registry.

Any ideas on how I can accomplish this?

Thanks in advance.

Rodd
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform