Using Win32 functions in Visual FoxPro Image Gallery
Registry
..msdn
GetPrivateProfileSectionNames
GetPrivateProfileString
GetProfileString
RegCloseKey
RegCreateKeyEx
RegDeleteKey
RegDeleteValue
RegEnumKey
RegEnumKeyEx
RegEnumValue
RegOpenKeyEx
RegQueryInfoKey
RegQueryValueEx
RegSaveKey
RegSetValueEx
SHEnumKeyEx
SHRegCloseUSKey
SHRegEnumUSKey
SHRegOpenUSKey
WritePrivateProfileSection
WritePrivateProfileString
Code examples:
Class library providing access to the System Registry
RegDeleteKey
..msdn    Add comment     W32 Constants      Translate this page
The RegDeleteKey function deletes a subkey, including all of its values.
Code examples:
Class library providing access to the System Registry
Declaration:
LONG RegDeleteKey(
  HKEY hKey,
  LPCTSTR lpSubKey
);
FoxPro declaration:
DECLARE INTEGER RegDeleteKey IN advapi32;
    INTEGER hKey,;
    STRING  lpSubKey
Parameters:
hKey
[in] Handle to an open key.

lpSubKey
[in] Pointer to a null-terminated string specifying the name of the key to be deleted.
Return value:
If the function succeeds, the return value is ERROR_SUCCESS (0).
My comment:
The key must have been opened with the DELETE access right.

hKey handle is returned by the RegCreateKeyEx or RegOpenKeyEx function, or it can be one of the following predefined keys:
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS

The subkey to be deleted must not have subkeys. To delete a key and all its subkeys, you need to recursively enumerate the subkeys and delete them individually. To recursively delete keys, use the SHDeleteKey function.
Word Index links for the RegDeleteKey :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-10-18 19:41:48
Modified: 2004-10-18 19:44:59
Visited in last 7 days: 32
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.163.61.66)
17 sec.Function: 'DeleteUrlCacheEntry'
32 sec.Function: 'GdiFlush'
47 sec.Function: 'WNetGetConnection'
1.05 min.Function: 'FindFirstVolumeMountPoint'
1.35 min.
Function group: 'GDI+ ImageAttributes'
1.63 min.Function: 'GetAce'
1.88 min.Function: 'RegSaveKey'
2.15 min.Function: 'mixerGetLineControls'
2.4 min.
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
2.65 min.Example: 'Creating a file, then moving it to another destination'
Google
Advertise here!