_NtQuerySystemInformation нет в h-файлах?

Тема в разделе "WASM.BEGINNERS", создана пользователем fobos, 13 фев 2007.

  1. fobos

    fobos New Member

    Публикаций:
    0
    Всем привет!

    Что-то не могу понять - неужели в заголовочных файлах нет функции _NtQuerySystemInformation? Ни в PlatformSDK, ни в NTDDK не нашел.
     
  2. Cr4sh

    Cr4sh New Member

    Публикаций:
    0
    Код (Text):
    1. NTSTATUS NtQuerySystemInformation(
    2.     ULONG   SystemInformationClass,
    3.     PVOID       SystemInformation,
    4.     ULONG   SystemInformationLength,
    5.     PULONG  ReturnLength
    6. );
     
  3. wasm_test

    wasm_test wasm test user

    Публикаций:
    0
    плохо искал

    Cr4sh
    еще желательно приписать __stdcall ;)
     
  4. fobos

    fobos New Member

    Публикаций:
    0
    Я извиняюсь. Задал совсем некорректный вопрос. На самом деле я не нашел значение SystemModuleInformation перечисления SYSTEM_INFORMATION_CLASS. Наверное, и структуры связанной с этим значением тоже нет. Откуда же Шрайбер это взял (см. Недокументированные возможности Windows 2000)?
     
  5. IceStudent

    IceStudent Active Member

    Публикаций:
    0
  6. Cr4sh

    Cr4sh New Member

    Публикаций:
    0
    Код (Text):
    1. typedef enum _SYSTEM_INFORMATION_CLASS
    2. {
    3.     SystemBasicInformation,
    4.     SystemProcessorInformation,
    5.     SystemPerformanceInformation,
    6.     SystemTimeInformation,          
    7.     SystemPathInformation,          
    8.     SystemProcessInformation,      
    9.     SystemCallInformation,            
    10.     SystemConfigurationInformation,
    11.     SystemProcessorCounters,        
    12.     SystemGlobalFlag,                
    13.     SystemCallTimeInformation,    
    14.     SystemModuleInformation,      // <= нужное тебе значение
    15.     SystemLockInformation,        
    16.     SystemStackTraceInformation,
    17.     SystemPagedPoolInformation,  
    18.     SystemNonPagedPoolInformation,
    19.     SystemHandleInformation,          
    20.     SystemObjectTypeInformation,  
    21.     SystemPageFileInformation,        
    22.     SystemVdmInstemulInformation,  
    23.     SystemVdmBopInformation,        
    24.     SystemCacheInformation,            
    25.     SystemPoolTagInformation,        
    26.     SystemInterruptInformation,      
    27.     SystemDpcInformation,              
    28.     SystemFullMemoryInformation,    
    29.     SystemLoadDriver,                  
    30.     SystemUnloadDriver,              
    31.     SystemTimeAdjustmentInformation,
    32.     SystemSummaryMemoryInformation,
    33.     SystemNextEventIdInformation,      
    34.     SystemEventIdsInformation,        
    35.     SystemCrashDumpInformation,      
    36.     SystemExceptionInformation,        
    37.     SystemCrashDumpStateInformation,
    38.     SystemDebuggerInformation,        
    39.     SystemContextSwitchInformation,  
    40.     SystemRegistryQuotaInformation,  
    41.     SystemAddDriver,                  
    42.     SystemPrioritySeparationInformation,
    43.     SystemPlugPlayBusInformation,      
    44.     SystemDockInformation,            
    45.     SystemPowerInfo,               
    46.     SystemProcessorSpeedInformation,  
    47.     SystemTimeZoneInformation,        
    48.     SystemLookasideInformation,        
    49.     SystemSetTimeSlipEvent,
    50.     SystemCreateSession,
    51.     SystemDeleteSession,   
    52.     SystemInvalidInfoClass1,
    53.     SystemRangeStartInformation,
    54.     SystemVerifierInformation,
    55.     SystemAddVerifier,
    56.     SystemSessionProcessesInformation,
    57.     MaxSystemInfoClass
    58. } SYSTEM_INFORMATION_CLASS,
    59. *PSYSTEM_INFORMATION_CLASS;
     
  7. k3internal

    k3internal New Member

    Публикаций:
    0
    зато там есть ZwQuerySystemInformation
     
  8. fobos

    fobos New Member

    Публикаций:
    0
    Спасибо.