#ifndef _NTREGAPI_H
/**
* Sets information for a registry key.
*
* @param[in] KeyHandle A handle to the key to be modified.
* @param[in] KeySetInformationClass The type of information to be set.
* @param[in] KeySetInformation A pointer to a buffer that contains the key information.
* @param[in] KeySetInformationLength The size of the buffer.
* @return NTSTATUS Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetInformationKey(
_In_ HANDLE KeyHandle,
_In_ KEY_SET_INFORMATION_CLASS KeySetInformationClass,
_In_reads_bytes_(KeySetInformationLength) PVOID KeySetInformation,
_In_ ULONG KeySetInformationLength
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetInformationKey(
_In_ HANDLE KeyHandle,
_In_ KEY_SET_INFORMATION_CLASS KeySetInformationClass,
_In_reads_bytes_(KeySetInformationLength) PVOID KeySetInformation,
_In_ ULONG KeySetInformationLength
);
View code on GitHub
This function is documented in Windows SDK.
See <ntddk.h>
for possible values. Currently only KEY_WRITE_TIME_INFORMATION
is supported.
See <ntddk.h>
for detailed structure KEY_WRITE_TIME_INFORMATION
.