banner

API.DeleteRegKey method

Deletes a section in the registry.

Syntax

window.external.API.DeleteRegKey (lHKey, sSectionName);

Parameters lHKey

Long. One of the predefined HKEY values:

0x80000000 - HKEY_CLASSES_ROOT       
0x80000001 - HKEY_CURRENT_USER      
0x80000002 - HKEY_LOCAL_MACHINE      
0x80000003 - HKEY_USERS              
0x80000004 - HKEY_PERFORMANCE_DATA
0x80000005 - HKEY_CURRENT_CONFIG     
0x80000006 - HKEY_DYN_DATA           

sSectionName

String. The section in the registry to delete.

Return Values None
Applies To window.external.API
Example
HKEY_LOCAL_MACHINE = 0x80000002;
window.external.API.DeleteRegKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\MySection");