banner

API.RegFlushKey method

Ensures that changes made to the registry (under that section) copy to a disk. Guarantees that the registry's disk image has the most recent changes.

Syntax

window.external.API.RegFlushKey(lHKey);

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

Return Values None
Applies To window.external.API
Example
HKEY_LOCAL_MACHINE = 0x80000002;
window.external.API.RegFlushKey(HKEY_LOCAL_MACHINE);