Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegOpenKey & RegDeleteKey
Message
De
17/02/2003 09:51:18
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
RegOpenKey & RegDeleteKey
Divers
Thread ID:
00754071
Message ID:
00754071
Vues:
60
Hi all

I am trying to Create, Open, Close & Delete a registry entry. So far I've been able to Create + Close one.

DECLARE Integer RegCreateKey IN Win32API ;
Integer lnHKey, String @lcSubKey, Integer @lnNewResult

lnHKey = -2147483646 && HKEY_LOCAL_MACHINE
lcSubKey = "System\\CurrentControlSet\\Control\\ComputerName\\ComputerName\\MyNewReg"
lnSuccess = RegCreateKey(lnHKey, @lcSubKey, @lnNewResult)

DECLARE Integer RegCloseKey IN Win32API ;
Integer nHKey

lnHKey = lnNewResult
lnSuccess = RegCloseKey(lnHKey)

But from there the other 2 don't seen to work.

Could someone point me to where I could get the correct way to use them.

TIA
Mike
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform