Questa pagina è stata utile?
I suggerimenti relativi al contenuto di questa pagina sono importanti. Comunicaceli.
Altri suggerimenti?
1500 caratteri rimanenti
Esporta (0) Stampa
Espandi tutto
EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

RegQueryReflectionKey function

Determines whether reflection has been disabled or enabled for the specified key.

Syntax


LONG WINAPI RegQueryReflectionKey(
  _In_  HKEY hBase,
  _Out_ BOOL *bIsReflectionDisabled
);

Parameters

hBase [in]

A handle to the registry key. This handle is returned by the RegCreateKeyEx, RegCreateKeyTransacted, RegOpenKeyEx, or RegOpenKeyTransacted function; it cannot specify a key on a remote computer.

bIsReflectionDisabled [out]

A value that indicates whether reflection has been disabled through RegDisableReflectionKey or enabled through RegEnableReflectionKey.

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 disable registry reflection, use the RegDisableReflectionKey function. To restore reflection for a disabled key, use the RegEnableReflectionKey function.

Requirements

Minimum supported client

Windows Vista, Windows XP Professional x64 Edition [desktop apps only]

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only]

Header

WinReg.h (include Windows.h)

Library

AdvApi32.lib

DLL

AdvApi32.dll

See also

RegCreateKeyEx
RegDisableReflectionKey
RegEnableReflectionKey
Registry Functions
Registry Redirector
RegOpenKeyEx

 

 

Aggiunte alla community

AGGIUNGI
Mostra:
© 2015 Microsoft