vc++程序中RegDeleteValue函数怎么用啊? 能举个例吗?

来源:百度知道 编辑:UC知道 时间:2024/09/21 21:43:17
简单点,好像有2个参数

RegDeleteValue 函数
The RegDeleteValue function removes a named value from the specified registry key. Note that value names are not case sensitive.
定义
LONG RegDeleteValue(HKEY hKey, LPCTSTR lpValueName);
参数
hKey
[in] Handle to an open key. The key must have been opened with the KEY_SET_VALUE access right. For more information, see Registry Key Security and Access Rights.

This 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

Windows Me/98/95: This parameter can also be the following value:
HKEY_DYN_DATA
lpValueName
[in] Pointer to a null-terminated string that names the value to remove. If this parameter is NULL or an empty string, the value set by the RegSetValue function is removed.

For more information, see