Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegOpenKey & RegDeleteKey
Message
 
 
À
17/02/2003 09:51:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00754071
Message ID:
00754081
Vues:
27
This message has been marked as a message which has helped to the initial question of the thread.
You can download registry class from http://west-wind.com/wwvfppd.htm. There's also registry class included with VFP but it supports only string data.


>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform