_RegFlushKey


DWORD _RegFlushKey(HKEY hKey)

Flushes the data for the given Registry Key.

hKey

Handle of a previously opened key or one of the predefined root keys given in Predefined Keys.

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.