Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/win_kernel_common/windefs.h
Views: 11766
#ifndef _WINDEFS_H1#define _WINDEFS_H23// Hooray for windows API stuff being so shit including different files results in a mess4#pragma warning(disable: 4005) // Macro redefinition56#include <Windows.h>7#include <WinIoCtl.h>8#include <ntstatus.h>910#ifndef NT_SUCCESS11#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)12#endif1314#ifndef SYSTEM_INFORMATION_CLASS15typedef enum _SYSTEM_INFORMATION_CLASS16{17SystemBasicInformation = 0,18SystemProcessorInformation = 1,19SystemPerformanceInformation = 2,20SystemTimeOfDayInformation = 3,21SystemPathInformation = 4,22SystemProcessInformation = 5,23SystemCallCountInformation = 6,24SystemDeviceInformation = 7,25SystemProcessorPerformanceInformation = 8,26SystemFlagsInformation = 9,27SystemCallTimeInformation = 10,28SystemModuleInformation = 11,29SystemLocksInformation = 12,30SystemStackTraceInformation = 13,31SystemPagedPoolInformation = 14,32SystemNonPagedPoolInformation = 15,33SystemHandleInformation = 16,34SystemObjectInformation = 17,35SystemPageFileInformation = 18,36SystemVdmInstemulInformation = 19,37SystemVdmBopInformation = 20,38SystemFileCacheInformation = 21,39SystemPoolTagInformation = 22,40SystemInterruptInformation = 23,41SystemDpcBehaviorInformation = 24,42SystemFullMemoryInformation = 25,43SystemLoadGdiDriverInformation = 26,44SystemUnloadGdiDriverInformation = 27,45SystemTimeAdjustmentInformation = 28,46SystemSummaryMemoryInformation = 29,47SystemMirrorMemoryInformation = 30,48SystemPerformanceTraceInformation = 31,49SystemObsolete0 = 32,50SystemExceptionInformation = 33,51SystemCrashDumpStateInformation = 34,52SystemKernelDebuggerInformation = 35,53SystemContextSwitchInformation = 36,54SystemRegistryQuotaInformation = 37,55SystemExtendServiceTableInformation = 38,56SystemPrioritySeperation = 39,57SystemVerifierAddDriverInformation = 40,58SystemVerifierRemoveDriverInformation = 41,59SystemProcessorIdleInformation = 42,60SystemLegacyDriverInformation = 43,61SystemCurrentTimeZoneInformation = 44,62SystemLookasideInformation = 45,63SystemTimeSlipNotification = 46,64SystemSessionCreate = 47,65SystemSessionDetach = 48,66SystemSessionInformation = 49,67SystemRangeStartInformation = 50,68SystemVerifierInformation = 51,69SystemVerifierThunkExtend = 52,70SystemSessionProcessInformation = 53,71SystemLoadGdiDriverInSystemSpace = 54,72SystemNumaProcessorMap = 55,73SystemPrefetcherInformation = 56,74SystemExtendedProcessInformation = 57,75SystemRecommendedSharedDataAlignment = 58,76SystemComPlusPackage = 59,77SystemNumaAvailableMemory = 60,78SystemProcessorPowerInformation = 61,79SystemEmulationBasicInformation = 62,80SystemEmulationProcessorInformation = 63,81SystemExtendedHandleInformation = 64,82SystemLostDelayedWriteInformation = 65,83SystemBigPoolInformation = 66,84SystemSessionPoolTagInformation = 67,85SystemSessionMappedViewInformation = 68,86SystemHotpatchInformation = 69,87SystemObjectSecurityMode = 70,88SystemWatchdogTimerHandler = 71,89SystemWatchdogTimerInformation = 72,90SystemLogicalProcessorInformation = 73,91SystemWow64SharedInformationObsolete = 74,92SystemRegisterFirmwareTableInformationHandler = 75,93SystemFirmwareTableInformation = 76,94SystemModuleInformationEx = 77,95SystemVerifierTriageInformation = 78,96SystemSuperfetchInformation = 79,97SystemMemoryListInformation = 80,98SystemFileCacheInformationEx = 81,99SystemThreadPriorityClientIdInformation = 82,100SystemProcessorIdleCycleTimeInformation = 83,101SystemVerifierCancellationInformation = 84,102SystemProcessorPowerInformationEx = 85,103SystemRefTraceInformation = 86,104SystemSpecialPoolInformation = 87,105SystemProcessIdInformation = 88,106SystemErrorPortInformation = 89,107SystemBootEnvironmentInformation = 90,108SystemHypervisorInformation = 91,109SystemVerifierInformationEx = 92,110SystemTimeZoneInformation = 93,111SystemImageFileExecutionOptionsInformation = 94,112SystemCoverageInformation = 95,113SystemPrefetchPatchInformation = 96,114SystemVerifierFaultsInformation = 97,115SystemSystemPartitionInformation = 98,116SystemSystemDiskInformation = 99,117SystemProcessorPerformanceDistribution = 100,118SystemNumaProximityNodeInformation = 101,119SystemDynamicTimeZoneInformation = 102,120SystemCodeIntegrityInformation = 103,121SystemProcessorMicrocodeUpdateInformation = 104,122SystemProcessorBrandString = 105,123SystemVirtualAddressInformation = 106,124SystemLogicalProcessorAndGroupInformation = 107,125SystemProcessorCycleTimeInformation = 108,126SystemStoreInformation = 109,127SystemRegistryAppendString = 110,128SystemAitSamplingValue = 111,129SystemVhdBootInformation = 112,130SystemCpuQuotaInformation = 113,131SystemNativeBasicInformation = 114,132SystemErrorPortTimeouts = 115,133SystemLowPriorityIoInformation = 116,134SystemBootEntropyInformation = 117,135SystemVerifierCountersInformation = 118,136SystemPagedPoolInformationEx = 119,137SystemSystemPtesInformationEx = 120,138SystemNodeDistanceInformation = 121,139SystemAcpiAuditInformation = 122,140SystemBasicPerformanceInformation = 123,141SystemQueryPerformanceCounterInformation = 124,142SystemSessionBigPoolInformation = 125,143SystemBootGraphicsInformation = 126,144SystemScrubPhysicalMemoryInformation = 127,145SystemBadPageInformation = 128,146SystemProcessorProfileControlArea = 129,147SystemCombinePhysicalMemoryInformation = 130,148SystemEntropyInterruptTimingInformation = 131,149SystemConsoleInformation = 132,150SystemPlatformBinaryInformation = 133,151SystemPolicyInformation = 134,152SystemHypervisorProcessorCountInformation = 135,153SystemDeviceDataInformation = 136,154SystemDeviceDataEnumerationInformation = 137,155SystemMemoryTopologyInformation = 138,156SystemMemoryChannelInformation = 139,157SystemBootLogoInformation = 140,158SystemProcessorPerformanceInformationEx = 141,159SystemSpare0 = 142,160SystemSecureBootPolicyInformation = 143,161SystemPageFileInformationEx = 144,162SystemSecureBootInformation = 145,163SystemEntropyInterruptTimingRawInformation = 146,164SystemPortableWorkspaceEfiLauncherInformation = 147,165SystemFullProcessInformation = 148,166SystemKernelDebuggerInformationEx = 149,167SystemBootMetadataInformation = 150,168SystemSoftRebootInformation = 151,169SystemElamCertificateInformation = 152,170SystemOfflineDumpConfigInformation = 153,171SystemProcessorFeaturesInformation = 154,172SystemRegistryReconciliationInformation = 155,173SystemEdidInformation = 156,174MaxSystemInfoClass = 157175} SYSTEM_INFORMATION_CLASS;176#endif177178typedef struct _RTL_PROCESS_MODULE_INFORMATION179{180HANDLE Section;181PVOID MappedBase;182PVOID ImageBase;183ULONG ImageSize;184ULONG Flags;185USHORT LoadOrderIndex;186USHORT InitOrderIndex;187USHORT LoadCount;188USHORT OffsetToFileName;189UCHAR FullPathName[256];190} RTL_PROCESS_MODULE_INFORMATION, *PRTL_PROCESS_MODULE_INFORMATION;191192typedef struct _RTL_PROCESS_MODULES193{194ULONG NumberOfModules;195RTL_PROCESS_MODULE_INFORMATION Modules[1];196} RTL_PROCESS_MODULES, *PRTL_PROCESS_MODULES;197198#endif199200201