In Vista, How Does the FLAGS Switch of REG.EXE Work? No Vista, de que forma a BANDEIRAS Switch REG.EXE de Trabalho? Part 2 Parte 2
Note: this content originally from Nota: este conteúdo originalmente de http://mygreenpaste.blogspot.com http://mygreenpaste.blogspot.com . . If you are reading it from some other site, please take the time to visit Se você está lendo-o de qualquer outro site, por favor, aproveite para visitar My Green Paste, Inc A minha pasta verde, Inc . . Thank you. Obrigado.
Previously Anteriormente , I wrote about the FLAGS switch for REG.EXE in Vista and covered a technique that would set the virtualization-related flags of a registry key programmatically. , Escrevi sobre as bandeiras para alternar REG.EXE Vista e coberta em uma técnica que estabeleceria a virtualização relacionadas com as bandeiras de uma chave Registo programática. This post intends to cover the other side - querying for the virtualization-related flags of a registry key. Este post tem a intenção de cobrir o outro lado - examinando para a virtualização relacionadas com as bandeiras de uma secretaria-chave. Again, we're dealing with an "undocumented" function in NTDLL.DLL - NtQueryKey: Mais uma vez, estamos a lidar com um "indocumentados", em função NTDLL.DLL - NtQueryKey:
NTSTATUS NtQueryKey( NTSTATUS NtQueryKey (
IN HANDLE KeyHandle, Em lidar com KeyHandle,
IN KEY_INFORMATION_CLASS KeyInformationClass, Em KEY_INFORMATION_CLASS KeyInformationClass,
OUT PVOID KeyInformation, Out PVOID KeyInformation,
IN ULONG Length ULONG em comprimento
OUT PULONG ResultLength ); OUT PULONG ResultLength);
To retrieve the flags for a key, call NtQueryKey with KeyInformationClass set to 5, which WDM.h tells us is KeyFlagsInformation. Para recuperar as bandeiras de uma chave, chamada NtQueryKey com KeyInformationClass fixado para 5, o que nos diz WDM.h é KeyFlagsInformation.
typedef enum _KEY_INFORMATION_CLASS { typedef ENUM _KEY_INFORMATION_CLASS (
KeyBasicInformation,
KeyNodeInformation,
KeyFullInformation,
KeyNameInformation,
KeyCachedInformation,
KeyFlagsInformation,
KeyVirtualizationInformation,
MaxKeyInfoClass // MaxKeyInfoClass should always be the last enum MaxKeyInfoClass / / MaxKeyInfoClass deve ser sempre a última enum
} KEY_INFORMATION_CLASS KEY_INFORMATION_CLASS)
REG.EXE supplies 12 for the value of the Length param, and the last 4 bytes of the buffer (KeyInformation) are modified when NtQueryKey returns. REG.EXE fornecimentos 12 para o valor do comprimento param, e os últimos 4 bytes do buffer (KeyInformation) são modificados quando NtQueryKey volta. This... Esta ...
Written by «/\/\Ø|ö±ò\/»®© on Escrito por  «/ \ / \ à ~ | à ¶  ± à ² \ / Â"  ®  © em July 9th, 2008 9 de julho, 2008 with com no comments sem comentários . .
Read more articles on Leia mais artigos sobre Sysinternals Forum Sysinternals Fórum and e registry virtualization Registro virtualização and e reg.exe flags reg.exe bandeiras and e NtQueryKey NtQueryKey and e REG_KEY_DONT_VIRTUALIZE REG_KEY_DONT_VIRTUALIZE and e flags Bandeiras and e vista Vista and e otherSoftware otherSoftware and e REG_KEY_DONT_SILENT_FAIL REG_KEY_DONT_SILENT_FAIL and e reg Reg and e Virtualization Virtualização . .















