_RegFlushKey


include vmm.h

LONG _RegFlushKey(HKEY hkey)

The specified key is written to the registry file on the disk. This service should be avoided for performance reasons. Windows will automatically flush the registry to the disk. See the documentation for the Win32 function of the same name for additional information.

ERROR_KEY_DELETED

ERROR_OUTOFMEMORY

ERROR_BADKEY

ERROR_REGISTRY_IO_FAILED

ERROR_REGISTRY_CORRUPT

ERROR_BADDB


hkey

Handle of an open key or one of the predefined keys:

HKEY_CLASSES_ROOT

HKEY_CURRENT_USER

HKEY_LOCAL_MACHINE

HKEY_USERS

HKEY_CURRENT_CONFIG


Of the predefined key values, only HKEY_LOCAL_MACHINE is available to VxDs during initialization time. The entire registry space can only be accessed after VxD initialization is complete.