NtQuerySystemInformation 函数简单解析

本文详细介绍了微软内部未公开的NTSTATUSWINAPINtQuerySystemInformation函数及其参数解析,包括SYSTEM_INFORMATION_CLASS枚举类型的具体用法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.函数定义:

    此函数是微软内部使用函数,未公开。此函数在之后的操作系统会有所改变,需注意使用。 

NTSTATUS WINAPI NtQuerySystemInformation(
  _In_       SYSTEM_INFORMATION_CLASS SystemInformationClass,
  _Inout_    PVOID SystemInformation,
  _In_       ULONG SystemInformationLength,
  _Out_opt_  PULONG ReturnLength
);

 2.参数解析:

  • SYSTEM_INFORMATION_CLASS 是一个枚举类型,具体包括:
  • typedef enum _SYSTEM_INFORMATION_CLASS {
        SystemBasicInformation,                // 0 Y N
        SystemProcessorInformation,            // 1 Y N
        SystemPerformanceInformation,        // 2 Y N
        SystemTimeOfDayInformation,            // 3 Y N
        SystemNotImplemented1,                // 4 Y N
        SystemProcessesAndThreadsInformation, // 5 Y N
        SystemCallCounts,                    // 6 Y N
        SystemConfigurationInformation,        // 7 Y N
        SystemProcessorTimes,                // 8 Y N
        SystemGlobalFlag,                    // 9 Y Y
        SystemNotImplemented2,                // 10 Y N
        SystemModuleInformation,            // 11 Y N
        SystemLockInformation,                // 12 Y N
        SystemNotImplemented3,                // 13 Y N
        SystemNotImplemented4,                // 14 Y N
        SystemNotImplemented5,                // 15 Y N
        SystemHandleInformation,            // 16 Y N
        SystemObjectInformation,            // 17 Y N
        SystemPagefileInformation,            // 18 Y N
        SystemInstructionEmulationCounts,    // 19 Y N
        SystemInvalidInfoClass1,            // 20
        SystemCacheInformation,                // 21 Y Y
        SystemPoolTagInformation,            // 22 Y N
        SystemProcessorStatistics,            // 23 Y N
        SystemDpcInformation,                // 24 Y Y
        SystemNotImplemented6,                // 25 Y N
        SystemLoadImage,                    // 26 N Y
        SystemUnloadImage,                    // 27 N Y
        SystemTimeAdjustment,                // 28 Y Y
        SystemNotImplemented7,                // 29 Y N
        SystemNotImplemented8,                // 30 Y N
        SystemNotImplemented9,                // 31 Y N
        SystemCrashDumpInformation,            // 32 Y N
        SystemExceptionInformation,            // 33 Y N
        SystemCrashDumpStateInformation,    // 34 Y Y/N
        SystemKernelDebuggerInformation,    // 35 Y N
        SystemContextSwitchInformation,        // 36 Y N
        SystemRegistryQuotaInformation,        // 37 Y Y
        SystemLoadAndCallImage,                // 38 N Y
        SystemPrioritySeparation,            // 39 N Y
        SystemNotImplemented10,                // 40 Y N
        SystemNotImplemented11,                // 41 Y N
        SystemInvalidInfoClass2,            // 42
        SystemInvalidInfoClass3,            // 43
        SystemTimeZoneInformation,            // 44 Y N
        SystemLookasideInformation,            // 45 Y N
        SystemSetTimeSlipEvent,                // 46 N Y
        SystemCreateSession,                // 47 N Y
        SystemDeleteSession,                // 48 N Y
        SystemInvalidInfoClass4,            // 49
        SystemRangeStartInformation,        // 50 Y N
        SystemVerifierInformation,            // 51 Y Y
        SystemAddVerifier,                    // 52 N Y
        SystemSessionProcessesInformation    // 53 Y N
    } SYSTEM_INFORMATION_CLASS;       ( 此结构体定义转自http://www.cppblog.com/xunbu7/archive/2012/12/27/196726.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值