NtQuerySystemInformation function ntdll

int NtQuerySystemInformation(
  1. int SystemInformationClass,
  2. Pointer<NativeType> SystemInformation,
  3. int SystemInformationLength,
  4. Pointer<Uint32> ReturnLength,
)

Retrieves the specified system information.

NTSTATUS NtQuerySystemInformation(
   [in]            SYSTEM_INFORMATION_CLASS SystemInformationClass,
   [in, out]       PVOID                    SystemInformation,
   [in]            ULONG                    SystemInformationLength,
   [out, optional] PULONG                   ReturnLength
);

Implementation

int NtQuerySystemInformation(
  int SystemInformationClass,
  Pointer SystemInformation,
  int SystemInformationLength,
  Pointer<Uint32> ReturnLength,
) => _NtQuerySystemInformation(
  SystemInformationClass,
  SystemInformation,
  SystemInformationLength,
  ReturnLength,
);