Function Reference


_WinAPI_RegDisableReflectionKey

Disables registry reflection for the specified key

#include <WinAPIReg.au3>
_WinAPI_RegDisableReflectionKey ( $hKey )

Parameters

$hKey Handle to an open registry key.
This handle is returned by the _WinAPI_RegCreateKey() or _WinAPI_RegOpenKey() function;
it cannot specify a key on a remote computer.
If the key is not on the reflection list, the function succeeds but has no effect.

Return Value

Success: 1.
Failure: 0 and sets the @error flag to non-zero, @extended flag may contain the system error code.

Remarks

On WOW64, 32-bit applications view a registry tree that is separate from the registry tree that 64-bit applications view.
Registry reflection copies specific registry keys and values between the two views.

To restore registry reflection for a disabled key, use the _WinAPI_RegEnableReflectionKey().

WARNING: Registry reflection was removed starting with Windows 7 and Windows Server 2008 R2.

Related

_WinAPI_RegCreateKey, _WinAPI_RegEnableReflectionKey, _WinAPI_RegOpenKey

See Also

Search RegDisableReflectionKey in MSDN Library.