Previous Topic: ConvertStringToBinaryNext Topic: DESKTOPPATH


DeleteKey

DeleteKey

Deletes a key and all of its values and subkeys from the registry or ini files. Returns False if there were problems deleting the key. If the key does not exist, it returns True. If the path is to an ini file, then all sections in the ini file are deleted.

First parameter:

The Key path (string value)

Example:
DeleteKey( "HKCU\\Software\\MyApp");
DeleteKey( "c:\\windows\\test.ini\\Keyname");
/* all keys deleted */
DeleteKey( "c:\\windows\\test.ini");