Deletes a key and all of its values and sub keys 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.
The Key path (string value)
DeleteKey( "HKCU\\Software\\MyApp"); DeleteKey( "c:\\windows\\test.ini\\Keyname"); /* all keys deleted */ DeleteKey( "c:\\windows\\test.ini");
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|