DWORD _RegFlushKey(HKEY hKey)
Flushes the data for the given Registry Key.
This is a time consuming operation and should not be used under normal circumstances. This service returns only after the registry file is flushed to disk. This may also flush data for other keys in the same registry file. Note that the registry is periodically flushed to the disk by VMM.