Writes all the attributes of the specified open key into the registry.
Note: Because RtRegFlushKey uses many system resources, it should be called only when necessary.
It is not necessary to call RtRegFlushKey to change a key. Registry changes are flushed to disk by the registry using its lazy flusher. Registry changes are also flushed to disk at system shutdown.
Unlike RtRegCloseKey, this call returns only after all the data is written to the registry.
RtRegFlushKey may also write out parts of or all of the other keys. Calling this call excessively can have a negative effect on an application's performance.
An application should call RtRegFlushKey only if it requires absolute certainty that registry changes are on disk. In general, RtRegFlushKey rarely, if ever, need be used.
LONG RtRegFlushKey( HKEY hKey // handle to key to write );
hKey
ERROR_SUCCESS
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |
Registry system calls, RtRegCloseKey, RtRegDeleteKey