NtQuerySystemInformation

[DllImport("ntdll.dll", SetLastError = true)]
public static extern int NtQuerySystemInformation(
   SYSTEM_INFORMATION_CLASS SystemInformationClass,
   IntPtr SystemInformation,
   uint SystemInformationLength,
   out uint ReturnLength
);

Microsoft documentation: Link

Last updated