Platform SDK: Registry |
The RegDisablePredefinedCache function disables the predefined registry handle table of HKEY_CURRENT_USER for the specified process.
LONG RegDisablePredefinedCache( );
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is a nonzero error code defined in Winerror.h. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error.
This is a Win32 client-only function.
Any access of HKEY_CURRENT_USER after this function is called will result in open and close operations being performed on HKEY_USERS\SID_of_current_process.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winreg.h; include Windows.h.
Library: Use Advapi32.lib.