;=============================================================;
;           undoc.inc file for Easy Code visual IDE           ;
;                        (Masm version)                       ;
;                                                             ;
;                   Driver Development Kit                    ;
;                                                             ;
;          Version 1.0.00 (created on November, 2010)         ;
;                                                             ;
;                Do not modify this file!!                    ;
;=============================================================;

IFNDEF UNDOC_INC
UNDOC_INC Equ 1

;SYSTEM_INFORMATION_CLASS Enumeration
SYSTEM_INFORMATION_CLASS                            TypeDef     DWord
SystemBasicInformation                              Equ         0
SystemProcessorInformation                          Equ         1
SystemPerformanceInformation                        Equ         2
SystemTimeOfDayInformation                          Equ         3
SystemProcessInformation                            Equ         5
SystemCallCounts                                    Equ         6
SystemConfigurationInformation                      Equ         7
SystemProcessorTimes                                Equ         8
SystemGlobalFlag                                    Equ         9
SystemModuleInformation                             Equ         11
SystemLockInformation                               Equ         12
SystemHandleInformation                             Equ         16
SystemObjectInformation                             Equ         17
SystemPagefileInformation                           Equ         18
SystemInstructionEmulationCounts                    Equ         19
SystemCacheInformation                              Equ         21
SystemPoolTagInformation                            Equ         22
SystemProcessorStatistics                           Equ         23
SystemDpcInformation                                Equ         24
SystemLoadImage                                     Equ         26
SystemUnloadImage                                   Equ         27
SystemTimeAdjustment                                Equ         28
SystemCrashDumpInformation                          Equ         32
SystemExceptionInformation                          Equ         33
SystemCrashDumpStateInformation                     Equ         34
SystemKernelDebuggerInformation                     Equ         35
SystemContextSwitchInformation                      Equ         36
SystemRegistryQuotaInformation                      Equ         37
SystemLoadAndCallImage                              Equ         38
SystemPrioritySeparation                            Equ         39
SystemTimeZoneInformation                           Equ         44
SystemLookasideInformation                          Equ         45
SystemSetTimeSlipEvent                              Equ         46
SystemCreateSession                                 Equ         47
SystemDeleteSession                                 Equ         48
SystemRangeStartInformation                         Equ         50
SystemVerifierInformation                           Equ         51
SystemAddVerifier                                   Equ         52
SystemSessionProcessesInformation                   Equ         53
PSYSTEM_INFORMATION_CLASS                           TypeDef     Ptr SYSTEM_INFORMATION_CLASS

SYSTEM_BASIC_INFORMATION Struct
    _Unknown                                        DD          ?   ;Unknown
    MaximumIncrement                                DD          ?
    PhysicalPageSize                                DD          ?
    NumberOfPhysicalPages                           DD          ?
    LowestPhysicalPage                              DD          ?
    HighestPhysicalPage                             DD          ?
    AllocationGranularity                           DD          ?
    LowestUserAddress                               DD          ?
    HighestUserAddress                              DD          ?
    ActiveProcessors                                DD          ?
    NumberProcessors                                DD          ?
SYSTEM_BASIC_INFORMATION EndS
PSYSTEM_BASIC_INFORMATION                           TypeDef     Ptr SYSTEM_BASIC_INFORMATION

SYSTEM_PROCESSOR_INFORMATION Struct
    ProcessorArchitecture                           DW          ?
    ProcessorLevel                                  DW          ?
    ProcessorRevision                               DW          ?
    _Unknown                                        DW          ?   ;Unknown
    FeatureBits                                     DD          ?
SYSTEM_PROCESSOR_INFORMATION EndS
PSYSTEM_PROCESSOR_INFORMATION                       TypeDef     Ptr SYSTEM_PROCESSOR_INFORMATION


SYSTEM_PERFORMANCE_INFORMATION Struct
    IdleTime                                        LARGE_INTEGER <>
    ReadTransferCount                               LARGE_INTEGER <>
    WriteTransferCount                              LARGE_INTEGER <>
    OtherTransferCount                              LARGE_INTEGER <>
    ReadOperationCount                              DD          ?
    WriteOperationCount                             DD          ?
    OtherOperationCount                             DD          ?
    AvailablePages                                  DD          ?
    TotalCommittedPages                             DD          ?
    TotalCommitLimit                                DD          ?
    PeakCommitment                                  DD          ?
    PageFaults                                      DD          ?
    WriteCopyFaults                                 DD          ?
    TransitionFaults                                DD          ?
    Reserved1                                       DD          ?
    DemandZeroFaults                                DD          ?
    PagesRead                                       DD          ?
    PageReadIos                                     DD          ?
    Reserved2                                       DD          2 Dup(?)
    PagefilePagesWritten                            DD          ?
    PagefilePageWriteIos                            DD          ?
    MappedFilePagesWritten                          DD          ?
    MappedFilePageWriteIos                          DD          ?
    PagedPoolUsage                                  DD          ?
    NonPagedPoolUsage                               DD          ?
    PagedPoolAllocs                                 DD          ?
    PagedPoolFrees                                  DD          ?
    NonPagedPoolAllocs                              DD          ?
    NonPagedPoolFrees                               DD          ?
    TotalFreeSystemPtes                             DD          ?
    SystemCodePage                                  DD          ?
    TotalSystemDriverPages                          DD          ?
    TotalSystemCodePages                            DD          ?
    SmallNonPagedLookasideListAllocateHits          DD          ?
    SmallPagedLookasideListAllocateHits             DD          ?
    Reserved3                                       DD          ?
    MmSystemCachePage                               DD          ?
    PagedPoolPage                                   DD          ?
    SystemDriverPage                                DD          ?
    FastReadNoWait                                  DD          ?
    FastReadWait                                    DD          ?
    FastReadResourceMiss                            DD          ?
    FastReadNotPossible                             DD          ?
    FastMdlReadNoWait                               DD          ?
    FastMdlReadWait                                 DD          ?
    FastMdlReadResourceMiss                         DD          ?
    FastMdlReadNotPossible                          DD          ?
    MapDataNoWait                                   DD          ?
    MapDataWait                                     DD          ?
    MapDataNoWaitMiss                               DD          ?
    MapDataWaitMiss                                 DD          ?
    PinMappedDataCount                              DD          ?
    PinReadNoWait                                   DD          ?
    PinReadWait                                     DD          ?
    PinReadNoWaitMiss                               DD          ?
    PinReadWaitMiss                                 DD          ?
    CopyReadNoWait                                  DD          ?
    CopyReadWait                                    DD          ?
    CopyReadNoWaitMiss                              DD          ?
    CopyReadWaitMiss                                DD          ?
    MdlReadNoWait                                   DD          ?
    MdlReadWait                                     DD          ?
    MdlReadNoWaitMiss                               DD          ?
    MdlReadWaitMiss                                 DD          ?
    ReadAheadIos                                    DD          ?
    LazyWriteIos                                    DD          ?
    LazyWritePages                                  DD          ?
    DataFlushes                                     DD          ?
    DataPages                                       DD          ?
    ContextSwitches                                 DD          ?
    FirstLevelTbFills                               DD          ?
    SecondLevelTbFills                              DD          ?
    SystemCalls                                     DD          ?
SYSTEM_PERFORMANCE_INFORMATION EndS
PSYSTEM_PERFORMANCE_INFORMATION                     TypeDef     Ptr SYSTEM_PERFORMANCE_INFORMATION

SYSTEM_TIME_OF_DAY_INFORMATION Struct
    BootTime                                        LARGE_INTEGER <>
    CurrentTime                                     LARGE_INTEGER <>
    TimeZoneBias                                    LARGE_INTEGER <>
    CurrentTimeZoneId                               DD          ?
SYSTEM_TIME_OF_DAY_INFORMATION EndS
PSYSTEM_TIME_OF_DAY_INFORMATION                     TypeDef     Ptr SYSTEM_TIME_OF_DAY_INFORMATION

;THREAD_STATE Enumeration
THREAD_STATE                                        TypeDef DWord
StateInitialized                                    Equ     0
StateReady                                          Equ     1
StateRunning                                        Equ     2
StateStandby                                        Equ     3
StateTerminated                                     Equ     4
StateWait                                           Equ     5
StateTransition                                     Equ     6
StateUnknown                                        Equ     7

SYSTEM_THREADS Struct
    KernelTime                                      LARGE_INTEGER <>
    UserTime                                        LARGE_INTEGER <>
    CreateTime                                      LARGE_INTEGER <>
    WaitTime                                        DD          ?
    StartAddress                                    PVOID       ?
    ClientId                                        CLIENT_ID   <>
    Priority                                        KPRIORITY   ?
    BasePriority                                    KPRIORITY   ?
    ContextSwitchCount                              DD          ?
    State                                           THREAD_STATE ?
    WaitReason                                      KWAIT_REASON ?
SYSTEM_THREADS EndS
PSYSTEM_THREADS                                     TypeDef     Ptr SYSTEM_THREADS

SYSTEM_PROCESSES Struct
    NextEntryDelta                                  DD          ?
    ThreadCount                                     DD          ?
    Reserved1                                       DD          6 Dup(?)
    CreateTime                                      LARGE_INTEGER <>
    UserTime                                        LARGE_INTEGER <>
    KernelTime                                      LARGE_INTEGER <>
    ProcessName                                     UNICODE_STRING <>
    BasePriority                                    KPRIORITY   ?
    ProcessId                                       DD          ?
    InheritedFromProcessId                          DD          ?
    HandleCount                                     DD          ?
    Reserved2                                       DD          2 Dup(?)
    PrivatePageCount                                DD          ?
    VmCounters                                      VM_COUNTERS <>
    IoCounters                                      IO_COUNTERS <>
    Threads                                         SYSTEM_THREADS 1 Dup(<>)
SYSTEM_PROCESSES EndS
PSYSTEM_PROCESSES                                   TypeDef     Ptr SYSTEM_PROCESSES

SYSTEM_CALLS_INFORMATION Struct
    _Size                                           DD          ?   ;Size
    NumberOfDescriptorTables                        DD          ?
    NumberOfRoutinesInTable                         DD          1 Dup(?)
SYSTEM_CALLS_INFORMATION EndS
PSYSTEM_CALLS_INFORMATION                           TypeDef     Ptr SYSTEM_CALLS_INFORMATION

SYSTEM_CONFIGURATION_INFORMATION Struct
    DiskCount                                       DD          ?
    FloppyCount                                     DD          ?
    CdRomCount                                      DD          ?
    TapeCount                                       DD          ?
    SerialCount                                     DD          ?
    ParallelCount                                   DD          ?
SYSTEM_CONFIGURATION_INFORMATION EndS
PSYSTEM_CONFIGURATION_INFORMATION                   TypeDef     Ptr SYSTEM_CONFIGURATION_INFORMATION

SYSTEM_PROCESSOR_TIMES Struct
    IdleTime                                        LARGE_INTEGER <>
    KernelTime                                      LARGE_INTEGER <>
    UserTime                                        LARGE_INTEGER <>
    DpcTime                                         LARGE_INTEGER <>
    InterruptTime                                   LARGE_INTEGER <>
    InterruptCount                                  DD          ?
SYSTEM_PROCESSOR_TIMES EndS
PSYSTEM_PROCESSOR_TIMES                             TypeDef     Ptr SYSTEM_PROCESSOR_TIMES

SYSTEM_GLOBAL_FLAG Struct
    GlobalFlag                                      DD          ?
SYSTEM_GLOBAL_FLAG EndS
PSYSTEM_GLOBAL_FLAG                                 TypeDef     Ptr SYSTEM_GLOBAL_FLAG

FLG_STOP_ON_EXCEPTION                               Equ     00000001H
FLG_SHOW_LDR_SNAPS                                  Equ     00000002H
FLG_DEBUG_INITIAL_COMMAND                           Equ     00000004H
FLG_STOP_ON_HUNG_GUI                                Equ     00000008H
FLG_HEAP_ENABLE_TAIL_CHECK                          Equ     00000010H
FLG_HEAP_ENABLE_FREE_CHECK                          Equ     00000020H
FLG_HEAP_VALIDATE_PARAMETERS                        Equ     00000040H
FLG_HEAP_VALIDATE_ALL                               Equ     00000080H
FLG_POOL_ENABLE_TAIL_CHECK                          Equ     00000100H
FLG_POOL_ENABLE_FREE_CHECK                          Equ     00000200H
FLG_POOL_ENABLE_TAGGING                             Equ     00000400H
FLG_HEAP_ENABLE_TAGGING                             Equ     00000800H
FLG_USER_STACK_TRACE_DB                             Equ     00001000H
FLG_KERNEL_STACK_TRACE_DB                           Equ     00002000H
FLG_MAINTAIN_OBJECT_TYPELIST                        Equ     00004000H
FLG_HEAP_ENABLE_TAG_BY_DLL                          Equ     00008000H
FLG_IGNORE_DEBUG_PRIV                               Equ     00010000H
FLG_ENABLE_CSRDEBUG                                 Equ     00020000H
FLG_ENABLE_KDEBUG_SYMBOL_LOAD                       Equ     00040000H
FLG_DISABLE_PAGE_KERNEL_STACKS                      Equ     00080000H
FLG_HEAP_ENABLE_CALL_TRACING                        Equ     00100000H
FLG_HEAP_DISABLE_COALESCING                         Equ     00200000H
FLG_ENABLE_CLOSE_EXCEPTIONS                         Equ     00400000H
FLG_ENABLE_EXCEPTION_LOGGING                        Equ     00800000H
FLG_ENABLE_DBGPRINT_BUFFERING                       Equ     08000000H

SYSTEM_MODULE_INFORMATION Struct
    Reserved                                        DD          2 Dup(?)
    Base                                            PVOID       ?
    _Size                                           DD          ?   ;Size
    _Flags                                          DD          ?   ;Flags
    Index                                           DW          ?
    _Unknown                                        DW          ?   ;Unknown
    LoadCount                                       DW          ?
    ModuleNameOffset                                DW          ?
    ImageName                                       DB          256 Dup(?)
SYSTEM_MODULE_INFORMATION EndS
PSYSTEM_MODULE_INFORMATION                          TypeDef     Ptr SYSTEM_MODULE_INFORMATION

SYSTEM_LOCK_INFORMATION Struct
    Address                                         PVOID       ?
    _Type                                           DW          ?   ;Type
    Reserved1                                       DW          ?
    ExclusiveOwnerThreadId                          DD          ?
    ActiveCount                                     DD          ?
    ContentionCount                                 DD          ?
    Reserved2                                       DD          2 Dup(?)
    NumberOfSharedWaiters                           DD          ?
    NumberOfExclusiveWaiters                        DD          ?
SYSTEM_LOCK_INFORMATION EndS
PSYSTEM_LOCK_INFORMATION                            TypeDef     Ptr SYSTEM_LOCK_INFORMATION

HANDLE_FLAG_INHERIT                                 Equ         00000001H
HANDLE_FLAG_PROTECT_FROM_CLOSE                      Equ         00000002H

SYSTEM_HANDLE_INFORMATION Struct
    ProcessId                                       DD          ?
    ObjectTypeNumber                                DB          ?
    _Flags                                          DB          ?   ;Flags
    Handle                                          DB          ?
    Object                                          PVOID       ?
    GrantedAccess                                   ACCESS_MASK ?
SYSTEM_HANDLE_INFORMATION EndS
PSYSTEM_HANDLE_INFORMATION                          TypeDef     Ptr SYSTEM_HANDLE_INFORMATION

SYSTEM_OBJECT_TYPE_INFORMATION Struct
    NextEntryOffset                                 DD          ?
    ObjectCount                                     DD          ?
    HandleCount                                     DD          ?
    TypeNumber                                      DD          ?
    InvalidAttributes                               DD          ?
    GenericMapping                                  GENERIC_MAPPING <>
    ValidAccessMask                                 ACCESS_MASK ?
    PoolType                                        POOL_TYPE   ?
    _Unknown                                        DB          ?   ;Unknown
    _Name                                           UNICODE_STRING <>   ;Name
SYSTEM_OBJECT_TYPE_INFORMATION EndS
PSYSTEM_OBJECT_TYPE_INFORMATION                     TypeDef     Ptr SYSTEM_OBJECT_TYPE_INFORMATION

SYSTEM_OBJECT_INFORMATION Struct
    NextEntryOffset                                 DD          ?
    Object                                          PVOID       ?
    CreatorProcessId                                DD          ?
    _Unknown                                        DW          ?   ;Unknown
    Flags                                           DW          ?
    PointerCount                                    DD          ?
    HandleCount                                     DD          ?
    PagedPoolUsage                                  DD          ?
    NonPagedPoolUsage                               DD          ?
    ExclusiveProcessId                              DD          ?
    SecurityDescriptor                              PSECURITY_DESCRIPTOR ?
    _Name                                           UNICODE_STRING <>   ;Name
SYSTEM_OBJECT_INFORMATION EndS
PSYSTEM_OBJECT_INFORMATION                          TypeDef     Ptr SYSTEM_OBJECT_INFORMATION

SINGLE_HANDLE_ENTRY                                 Equ     040H
DEFAULT_SECURITY_QUOTA                              Equ     020H
PERMANENT                                           Equ     010H
EXCLUSIVE                                           Equ     008H
CREATOR_INFO                                        Equ     004H
KERNEL_MODE                                         Equ     002H

SYSTEM_PAGEFILE_INFORMATION Struct
    NextEntryOffset                                 DD          ?
    CurrentSize                                     DD          ?
    TotalUsed                                       DD          ?
    PeakUsed                                        DD          ?
    FileName                                        UNICODE_STRING <>
SYSTEM_PAGEFILE_INFORMATION EndS
PSYSTEM_PAGEFILE_INFORMATION                        TypeDef     Ptr SYSTEM_PAGEFILE_INFORMATION

SYSTEM_INSTRUCTION_EMULATION_INFORMATION Struct
    SegmentNotPresent                               DD          ?
    TwoByteOpcode                                   DD          ?
    ESprefix                                        DD          ?
    CSprefix                                        DD          ?
    SSprefix                                        DD          ?
    DSprefix                                        DD          ?
    FSPrefix                                        DD          ?
    GSprefix                                        DD          ?
    OPER32prefix                                    DD          ?
    ADDR32prefix                                    DD          ?
    _INSB                                           DD          ?   ;INSB
    _INSW                                           DD          ?   ;INSW
    _OUTSB                                          DD          ?   ;OUTSB
    _OUTSW                                          DD          ?   ;OUTSW
    _PUSHFD                                         DD          ?   ;PUSHFD
    _POPFD                                          DD          ?   ;POPFD
    INTnn                                           DD          ?
    _INTO                                           DD          ?   ;INTO
    _IRETD                                          DD          ?   ;IRETD
    INBimm                                          DD          ?
    INWimm                                          DD          ?
    OUTBimm                                         DD          ?
    OUTWimm                                         DD          ?
    INB                                             DD          ?
    INW                                             DD          ?
    OUTB                                            DD          ?
    OUTW                                            DD          ?
    LOCKprefix                                      DD          ?
    REPNEprefix                                     DD          ?
    REPprefix                                       DD          ?
    _HLT                                            DD          ?   ;HLT
    _CLI                                            DD          ?   ;CLI
    _STI                                            DD          ?   ;STI
    GenericInvalidOpcode                            DD          ?
SYSTEM_INSTRUCTION_EMULATION_INFORMATION EndS
PSYSTEM_INSTRUCTION_EMULATION_INFORMAT              TypeDef     Ptr SYSTEM_INSTRUCTION_EMULATION_INFORMATION

SYSTEM_CACHE_INFORMATION Struct
    SystemCacheWsSize                               DD          ?
    SystemCacheWsPeakSize                           DD          ?
    SystemCacheWsFaults                             DD          ?
    SystemCacheWsMinimum                            DD          ?
    SystemCacheWsMaximum                            DD          ?
    TransitionSharedPages                           DD          ?
    TransitionSharedPagesPeak                       DD          ?
    Reserved                                        DD          2 Dup(?)
SYSTEM_CACHE_INFORMATION EndS
PSYSTEM_CACHE_INFORMATION                           TypeDef     Ptr SYSTEM_CACHE_INFORMATION

SYSTEM_POOL_TAG_INFORMATION Struct
    Tag                                             DB          4 Dup(?)
    PagedPoolAllocs                                 DD          ?
    PagedPoolFrees                                  DD          ?
    PagedPoolUsage                                  DD          ?
    NonPagedPoolAllocs                              DD          ?
    NonPagedPoolFrees                               DD          ?
    NonPagedPoolUsage                               DD          ?
SYSTEM_POOL_TAG_INFORMATION EndS
PSYSTEM_POOL_TAG_INFORMATION                        TypeDef     Ptr SYSTEM_POOL_TAG_INFORMATION

SYSTEM_PROCESSOR_STATISTICS Struct
    ContextSwitches                                 DD          ?
    DpcCount                                        DD          ?
    DpcRequestRate                                  DD          ?
    TimeIncrement                                   DD          ?
    DpcBypassCount                                  DD          ?
    ApcBypassCount                                  DD          ?
SYSTEM_PROCESSOR_STATISTICS EndS
PSYSTEM_PROCESSOR_STATISTICS                        TypeDef     Ptr SYSTEM_PROCESSOR_STATISTICS

SYSTEM_DPC_INFORMATION Struct
    Reserved                                        DD          ?
    MaximumDpcQueueDepth                            DD          ?
    MinimumDpcRate                                  DD          ?
    AdjustDpcThreshold                              DD          ?
    IdealDpcRate                                    DD          ?
SYSTEM_DPC_INFORMATION EndS
PSYSTEM_DPC_INFORMATION                             TypeDef     Ptr SYSTEM_DPC_INFORMATION

SYSTEM_LOAD_IMAGE Struct
    ModuleName                                      UNICODE_STRING <>
    ModuleBase                                      PVOID       ?
    _Unknown                                        PVOID       ?   ;Unknown
    EntryPoint                                      PVOID       ?
    ExportDirectory                                 PVOID       ?
SYSTEM_LOAD_IMAGE EndS
PSYSTEM_LOAD_IMAGE                                  TypeDef     Ptr SYSTEM_LOAD_IMAGE

SYSTEM_UNLOAD_IMAGE Struct
    ModuleBase                                      PVOID       ?
SYSTEM_UNLOAD_IMAGE EndS
PSYSTEM_UNLOAD_IMAGE                                TypeDef     Ptr SYSTEM_UNLOAD_IMAGE

SYSTEM_QUERY_TIME_ADJUSTMENT Struct
    TimeAdjustment                                  DD          ?
    MaximumIncrement                                DD          ?
    TimeSynchronization                             BOOLEAN     ?
SYSTEM_QUERY_TIME_ADJUSTMENT EndS
PSYSTEM_QUERY_TIME_ADJUSTMENT                       TypeDef     Ptr SYSTEM_QUERY_TIME_ADJUSTMENT

SYSTEM_SET_TIME_ADJUSTMENT Struct
    TimeAdjustment                                  DD          ?
    TimeSynchronization                             BOOLEAN     ?
SYSTEM_SET_TIME_ADJUSTMENT EndS
PSYSTEM_SET_TIME_ADJUSTMENT                         TypeDef     Ptr SYSTEM_SET_TIME_ADJUSTMENT

SYSTEM_CRASH_DUMP_INFORMATION Struct
    CrashDumpSectionHandle                          HANDLE      ?
    _Unknown                                        HANDLE      ?   ;Unknown
SYSTEM_CRASH_DUMP_INFORMATION EndS
PSYSTEM_CRASH_DUMP_INFORMATION                      TypeDef     Ptr SYSTEM_CRASH_DUMP_INFORMATION

SYSTEM_EXCEPTION_INFORMATION Struct
    AlignmentFixupCount                             DD          ?
    ExceptionDispatchCount                          DD          ?
    FloatingEmulationCount                          DD          ?
    Reserved                                        DD          ?
SYSTEM_EXCEPTION_INFORMATION EndS
PSYSTEM_EXCEPTION_INFORMATION                       TypeDef     Ptr SYSTEM_EXCEPTION_INFORMATION

SYSTEM_CRASH_DUMP_STATE_INFORMATION Struct
    CrashDumpSectionExists                          DD          ?
    _Unknown                                        DD          ?   ;Unknown
SYSTEM_CRASH_DUMP_STATE_INFORMATION EndS
PSYSTEM_CRASH_DUMP_STATE_INFORMATION                TypeDef     Ptr SYSTEM_CRASH_DUMP_STATE_INFORMATION

SYSTEM_KERNEL_DEBUGGER_INFORMATION Struct
    DebuggerEnabled                                 BOOLEAN     ?
    DebuggerNotPresent                              BOOLEAN     ?
SYSTEM_KERNEL_DEBUGGER_INFORMATION EndS
PSYSTEM_KERNEL_DEBUGGER_INFORMATION                 TypeDef     Ptr SYSTEM_KERNEL_DEBUGGER_INFORMATION

SYSTEM_CONTEXT_SWITCH_INFORMATION Struct
    ContextSwitches                                 DD          ?
    ContextSwitchCounters                           DD          11 Dup(?)
SYSTEM_CONTEXT_SWITCH_INFORMATION EndS
PSYSTEM_CONTEXT_SWITCH_INFORMATION                  TypeDef     Ptr SYSTEM_CONTEXT_SWITCH_INFORMATION

SYSTEM_REGISTRY_QUOTA_INFORMATION Struct
    RegistryQuota                                   DD          ?
    RegistryQuotaInUse                              DD          ?
    PagedPoolSize                                   DD          ?
SYSTEM_REGISTRY_QUOTA_INFORMATION EndS
PSYSTEM_REGISTRY_QUOTA_INFORMATION                  TypeDef     Ptr SYSTEM_REGISTRY_QUOTA_INFORMATION

SYSTEM_LOAD_AND_CALL_IMAGE Struct
    ModuleName                                      UNICODE_STRING <>
SYSTEM_LOAD_AND_CALL_IMAGE EndS
PSYSTEM_LOAD_AND_CALL_IMAGE                         TypeDef     Ptr SYSTEM_LOAD_AND_CALL_IMAGE

SYSTEM_PRIORITY_SEPARATION Struct
    PrioritySeparation                              DD          ?
SYSTEM_PRIORITY_SEPARATION EndS
PSYSTEM_PRIORITY_SEPARATION                         TypeDef     Ptr SYSTEM_PRIORITY_SEPARATION

SYSTEM_TIME_ZONE_INFORMATION Struct
    Bias                                            DD          ?
    StandardName                                    DW          32 Dup(?)
    StandardDate                                    SYSTEMTIME  <>
    StandardBias                                    DD          ?
    DaylightName                                    DW          32 Dup(?)
    DaylightDate                                    SYSTEMTIME  <>
    DaylightBias                                    DD          ?
SYSTEM_TIME_ZONE_INFORMATION EndS
PSYSTEM_TIME_ZONE_INFORMATION                       TypeDef     Ptr SYSTEM_TIME_ZONE_INFORMATION

SYSTEM_LOOKASIDE_INFORMATION Struct
    Depth                                           DW          ?
    MaximumDepth                                    DW          ?
    TotalAllocates                                  DD          ?
    AllocateMisses                                  DD          ?
    TotalFrees                                      DD          ?
    FreeMisses                                      DD          ?
    _Type                                           POOL_TYPE   ?   ;Type
    Tag                                             DD          ?
    _Size                                           DD          ?   ;Size
SYSTEM_LOOKASIDE_INFORMATION EndS
PSYSTEM_LOOKASIDE_INFORMATION                       TypeDef     Ptr SYSTEM_LOOKASIDE_INFORMATION

SYSTEM_SET_TIME_SLIP_EVENT Struct
    TimeSlipEvent                                   HANDLE      ?
SYSTEM_SET_TIME_SLIP_EVENT EndS
PSYSTEM_SET_TIME_SLIP_EVENT                         TypeDef     Ptr SYSTEM_SET_TIME_SLIP_EVENT

SYSTEM_CREATE_SESSION Struct
    SessionId                                       DD          ?
SYSTEM_CREATE_SESSION EndS
PSYSTEM_CREATE_SESSION                              TypeDef     Ptr SYSTEM_CREATE_SESSION

SYSTEM_DELETE_SESSION Struct
    SessionId                                       DD          ?
SYSTEM_DELETE_SESSION EndS
PSYSTEM_DELETE_SESSION                              TypeDef     Ptr SYSTEM_DELETE_SESSION

SYSTEM_RANGE_START_INFORMATION Struct
    SystemRangeStart                                PVOID       ?
SYSTEM_RANGE_START_INFORMATION EndS
PSYSTEM_RANGE_START_INFORMATION                     TypeDef     Ptr SYSTEM_RANGE_START_INFORMATION

SYSTEM_SESSION_PROCESSES_INFORMATION Struct
    SessionId                                       DD          ?
    BufferSize                                      DD          ?
    Buffer                                          PVOID       ?
SYSTEM_SESSION_PROCESSES_INFORMATION EndS
PSYSTEM_SESSION_PROCESSES_INFORMATION               TypeDef     Ptr SYSTEM_SESSION_PROCESSES_INFORMATION

SYSTEM_POOL_BLOCK Struct
    Allocated                                       BOOLEAN     ?
    _Unknown                                        DW          ?   ;Unknown
    _Size                                           DD          ?   ;Size
    Tag                                             DB          4 Dup(?)
SYSTEM_POOL_BLOCK EndS
PSYSTEM_POOL_BLOCK                                  TypeDef     Ptr SYSTEM_POOL_BLOCK

SYSTEM_POOL_BLOCKS_INFORMATION Struct
    PoolSize                                        DD          ?
    PoolBase                                        PVOID       ?
    _Unknown                                        DW          ?   ;Unknown
    NumberOfBlocks                                  DD          ?
    PoolBlocks                                      SYSTEM_POOL_BLOCK 1 Dup(<>)
SYSTEM_POOL_BLOCKS_INFORMATION EndS
PSYSTEM_POOL_BLOCKS_INFORMATION                     TypeDef     Ptr SYSTEM_POOL_BLOCKS_INFORMATION

SYSTEM_MEMORY_USAGE Struct
    _Name                                           PVOID       ?   ;Name
    Valid                                           DW          ?
    Standby                                         DW          ?
    Modified                                        DW          ?
    PageTables                                      DW          ?
SYSTEM_MEMORY_USAGE EndS
PSYSTEM_MEMORY_USAGE                                TypeDef     Ptr SYSTEM_MEMORY_USAGE

SYSTEM_MEMORY_USAGE_INFORMATION Struct
    Reserved                                        DD          ?
    EndOfData                                       PVOID       ?
    MemoryUsage                                     SYSTEM_MEMORY_USAGE 1 Dup(<>)
SYSTEM_MEMORY_USAGE_INFORMATION EndS
PSYSTEM_MEMORY_USAGE_INFORMATION                    TypeDef     Ptr SYSTEM_MEMORY_USAGE_INFORMATION

;DEBUG_CONTROL_CODE Enumeration
DEBUG_CONTROL_CODE                                  TypeDef     DWord
DebugGetTraceInformation                            Equ         1
DebugSetInternalBreakpoint                          Equ         2
DebugSetSpecialCall                                 Equ         3
DebugClearSpecialCalls                              Equ         4
DebugQuerySpecialCalls                              Equ         5
DebugDbgBreakPoint                                  Equ         6

DBGKD_INTERNAL_BP_FLAG_COUNTONLY                    Equ         01H
DBGKD_INTERNAL_BP_FLAG_INVALID                      Equ         02H
DBGKD_INTERNAL_BP_FLAG_SUSPENDED                    Equ         04H
DBGKD_INTERNAL_BP_FLAG_DYING                        Equ         08H

DBGKD_GET_INTERNAL_BREAKPOINT Struct
    BreakpointAddress                               DD          ?
    _Flags                                          DD          ?   ;Flags
    Calls                                           DD          ?
    MaxCallsPerPeriod                               DD          ?
    MinInstructions                                 DD          ?
    MaxInstructions                                 DD          ?
    TotalInstructions                               DD          ?
DBGKD_GET_INTERNAL_BREAKPOINT EndS
PDBGKD_GET_INTERNAL_BREAKPOINT                      TypeDef     Ptr DBGKD_GET_INTERNAL_BREAKPOINT

DBGKD_SET_INTERNAL_BREAKPOINT Struct
    BreakpointAddress                               DD          ?
    _Flags                                          DD          ?   ;Flags
DBGKD_SET_INTERNAL_BREAKPOINT EndS
PDBGKD_SET_INTERNAL_BREAKPOINT                      TypeDef     Ptr DBGKD_SET_INTERNAL_BREAKPOINT

DBGKD_QUERY_SPECIAL_CALLS Struct
    NumberOfSpecialCalls                            DD          ?
DBGKD_QUERY_SPECIAL_CALLS EndS
PDBGKD_QUERY_SPECIAL_CALLS                          TypeDef     Ptr DBGKD_QUERY_SPECIAL_CALLS

ENDIF ;UNDOC_INC
