#ifndef _NTREGAPI_H
/**
* Compresses a registry key.
*
* @param[in] KeyHandle A handle to the key to be compressed.
* @return NTSTATUS Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtCompressKey(
_In_ HANDLE KeyHandle
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwCompressKey(
_In_ HANDLE KeyHandle
);
View code on GitHub
This function compress data associated with specified Key
and all his sub-keys. Compressed key require smaller space in registry file, but whole functionality used with compressed key works slower.
HANDLE
of previously opened key object (with write access).