Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegOpenKey & RegDeleteKey
Message
 
 
To
17/02/2003 09:51:18
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00754071
Message ID:
00754081
Views:
21
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform