2 out of 9 rated this helpful - Rate this topic

RegDisableReflectionKey function

Applies to: desktop apps only

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

Minimum supported client

Windows Vista, Windows XP Professional x64 Edition

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP1

Header

Winreg.h (include Windows.h)

Library

Advapi32.lib

DLL

Advapi32.dll

See also

RegCreateKeyEx
RegEnableReflectionKey
Registry Redirector
Registry Functions
RegOpenKeyEx
RegQueryReflectionKey

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
anght new is make
how are you see you happy new 2011 in new make korea but not so mike? do you new make for today is in windows7.not so time system? do you for good make windows7.windows xp2000.2003.2007무료입니다.제품계약하기 위해 새로운시작하면서 windows serve2000.2003.2008.2008r2010에 만든 뭐하세요 통합으로 새로운 만들기 시작된 영문에 못찾기 때문에 큰오해가 났습니다. 항상 오류발생했니. 원격으로 사용합니까? 운영체제는 사용합니까?이문제가 있습니다.NET? 이전에는 만든 누구입니까? 서로 되지 않기 때문에 제품계약은 확인치 아닙니다. 제가 내심정입니다.위같이 확인하려면 제품계약을 시행합니다.