Всем привет! Что-то не могу понять - неужели в заголовочных файлах нет функции _NtQuerySystemInformation? Ни в PlatformSDK, ни в NTDDK не нашел.
Код (Text): NTSTATUS NtQuerySystemInformation( ULONG SystemInformationClass, PVOID SystemInformation, ULONG SystemInformationLength, PULONG ReturnLength );
Я извиняюсь. Задал совсем некорректный вопрос. На самом деле я не нашел значение SystemModuleInformation перечисления SYSTEM_INFORMATION_CLASS. Наверное, и структуры связанной с этим значением тоже нет. Откуда же Шрайбер это взял (см. Недокументированные возможности Windows 2000)?
Код (Text): typedef enum _SYSTEM_INFORMATION_CLASS { SystemBasicInformation, SystemProcessorInformation, SystemPerformanceInformation, SystemTimeInformation, SystemPathInformation, SystemProcessInformation, SystemCallInformation, SystemConfigurationInformation, SystemProcessorCounters, SystemGlobalFlag, SystemCallTimeInformation, SystemModuleInformation, // <= нужное тебе значение SystemLockInformation, SystemStackTraceInformation, SystemPagedPoolInformation, SystemNonPagedPoolInformation, SystemHandleInformation, SystemObjectTypeInformation, SystemPageFileInformation, SystemVdmInstemulInformation, SystemVdmBopInformation, SystemCacheInformation, SystemPoolTagInformation, SystemInterruptInformation, SystemDpcInformation, SystemFullMemoryInformation, SystemLoadDriver, SystemUnloadDriver, SystemTimeAdjustmentInformation, SystemSummaryMemoryInformation, SystemNextEventIdInformation, SystemEventIdsInformation, SystemCrashDumpInformation, SystemExceptionInformation, SystemCrashDumpStateInformation, SystemDebuggerInformation, SystemContextSwitchInformation, SystemRegistryQuotaInformation, SystemAddDriver, SystemPrioritySeparationInformation, SystemPlugPlayBusInformation, SystemDockInformation, SystemPowerInfo, SystemProcessorSpeedInformation, SystemTimeZoneInformation, SystemLookasideInformation, SystemSetTimeSlipEvent, SystemCreateSession, SystemDeleteSession, SystemInvalidInfoClass1, SystemRangeStartInformation, SystemVerifierInformation, SystemAddVerifier, SystemSessionProcessesInformation, MaxSystemInfoClass } SYSTEM_INFORMATION_CLASS, *PSYSTEM_INFORMATION_CLASS;