This function deletes the specified item from the registry.
[C++Builder/Visual C++] BOOL
PK3NETDeleteRegistry(long lRegKey, LPCSTR lpszSubKey, LPCSTR
lpszName);
[Delphi] function
PK3NETDeleteRegistry(lRegKey: Longint; lpszSubKey, lpszName:
PAnsiChar): LongBool;
[Visual Basic] Function
PK3NETDeleteRegistry(ByVal lRegKey As Long, ByVal lpszSubKey As
String, ByVal lpszName As String) As Long
Parameters
Name | Explanation |
lRegKey | 0: HKEY_CLASSES_ROOT 1: HKEY_LOCAL_MACHINE 2: HKEY_CURRENT_USER |
lpszSubKey | The registry subkey |
lpszName | The registry item name |
Return Value
Returns the True (nonzero) if successful, otherwise returns False (0).
Explanation
The PK3NETDeleteRegistry function deletes the specified item from the registry.
Depending on the value of IRegKey and on the user's permission settings, this function may be unable to delete the item from the registry. If user permissions are limited, be sure to set IRegKey to 2 (HKEY_CURRENT_USER).