SystemKernelVaShadowInformation 和 SystemSpeculationControlInformation 是否有 NtQuerySystemInformation 的替代方案?

问题描述

由于 Microsoft 不鼓励使用 NtQuerySysteminformation,我正在寻找替代方法显示在操作系统上设置的幽灵和崩溃缓解选项。

解决方法

正如 NtQuerySystemInformation 的文档所解释的那样:

应用程序应使用本主题中列出的替代功能。

既不是 SystemKernelVaShadowInformation 条目,也不是 SystemSpeculationControlInformation 条目列表替代功能,因此您无法避免调用 NtQuerySystemInformation,同时仍然使用它提供的功能。