Core Function RegDelete

From Sputnik Wiki
Revision as of 12:12, 21 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
RegDelete( <key>, <value> ) 

Contents

Description

Delete a key or value from the registry.

Parameters

key

The registry key to read.

value

Optional; The value to delete.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

A registry key must start with:

"HKEY_LOCAL_MACHINE" or "HKLM"

"HKEY_USERS" or "HKU"

"HKEY_CURRENT_USER" or "HKCU"

"HKEY_CLASSES_ROOT" or "HKCR"

"HKEY_CURRENT_CONFIG" or "HKCC"

Example

Delete a key

RegDelete(@"HKCU\SOFTWARE\Test");

Delete a value

RegDelete(@"HKCU\SOFTWARE\Test", "myValue");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox