Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
Registry
Registry Reference
Registry Functions
 RegDisableReflectionKey Function
RegDisableReflectionKey Function

Disables registry reflection for the specified key. Disabling reflection for a key does not affect reflection of any subkeys.

Syntax

LONG WINAPI RegDisableReflectionKey(
  __in  HKEY hBase
);

Parameters

hBase [in]

A handle to an open registry key. This handle is returned by the RegCreateKeyEx, RegCreateKeyTransacted, RegOpenKeyEx, or RegOpenKeyTransacted 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. For more information, see Registry Redirector and Registry Reflection.

Return Value

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.

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 RegEnableReflectionKey function.

Requirements

ClientRequires Windows Vista or Windows XP Professional x64 Edition.
ServerRequires Windows Server 2008 or Windows Server 2003 SP1.
HeaderDeclared in Winreg.h; include Windows.h.
LibraryUse Advapi32.lib.
DLLRequires Advapi32.dll.

See Also

RegCreateKeyEx
RegEnableReflectionKey
Registry Redirector
Registry Functions
RegOpenKeyEx
RegQueryReflectionKey


Send comments about this topic to Microsoft

Build date: 10/2/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker