NtSetSystemInformation - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)

/**
 * The NtSetSystemInformation routine sets information about the system.
 *
 * \param SystemInformationClass The type of information to be set.
 * \param SystemInformation A pointer to a buffer that receives the requested information.
 * \param SystemInformationLength The size of the buffer pointed to by SystemInformation.
 * \return NTSTATUS Successful or errant status.
 */
NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetSystemInformation(
    _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
    _In_reads_bytes_opt_(SystemInformationLength) PVOID SystemInformation,
    _In_ ULONG SystemInformationLength
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetSystemInformation(
    _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
    _In_reads_bytes_opt_(SystemInformationLength) PVOID SystemInformation,
    _In_ ULONG SystemInformationLength
    );

#endif

View code on GitHub

NtDoc

No description available.

NTinternals.net (undocumented.ntinternals.net)

This function is documented in Windows SDK.


NtSetSystemInformation is used to set some inaccessible KernelMode variables. See also NtQuerySystemInformation.

SystemInformationClass

Information class described in SYSTEM_INFORMATION_CLASS.

SystemInformation

Pointer to data buffer to set.

SystemInformationLength

Length of information in SystemInformation buffer, in bytes.

Documented by

See also