 |
RegDeleteValue ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The RegDeleteValue function removes a named value from the specified registry key. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
LONG RegDeleteValue(
HKEY hKey,
LPCTSTR lpValueName
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER RegDeleteValue IN advapi32;
INTEGER hKey,;
STRING lpValueName
|
 |
 |
 |
| Parameters: |
 |
hKey
[in] Handle to an open key.
lpValueName
[in] Pointer to a null-terminated string that names the value to remove. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is ERROR_SUCCESS (0). |
 |
 |
| My comment: |
 |
The key must have been opened with the KEY_SET_VALUE 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
If lpValueName parameter is NULL or an empty string, the value set by the RegSetValue function is removed. |
 |
 |
| Word Index links for the RegDeleteValue : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-10-18 19:49:22 | | Modified: | 2004-10-18 19:52:08 | Visited in last 7 days: 13 |