_RegDeleteValue


include vmm.h

LONG _RegDeleteValue(HKEY hkey, LPTSTR lpszValue)

Removes a named value from the given registry key. See the documentation for the Win32 function of the same name for additional information.

ERROR_FILE_NOT_FOUND

ERROR_KEY_DELETED

ERROR_BADKEY

ERROR_REGISTRY_IO_FAILED

ERROR_REGISTRY_CORRUPT

ERROR_BADDB


hkey

Handle of an open key or one of the predefined keys:

HKEY_CLASSES_ROOT

HKEY_CURRENT_USER

HKEY_LOCAL_MACHINE

HKEY_USERS

HKEY_CURRENT_CONFIG


lpszValue

Address of null-terminated string that contains the name of the value to remove.

Of the predefined key values, only HKEY_LOCAL_MACHINE and HKEY_DYN_DATA are available to VxDs during initialization time. The entire registry space can only be accessed after VxD initialization is complete.