3 Copyright (c) Alex Ionescu. All rights reserved.
11 Type definitions for the Memory Manager
15 Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
26 #include <arch/mmtypes.h>
34 // Page-Rounding Macros
36 #define PAGE_ROUND_DOWN(x) \
37 (((ULONG_PTR)(x))&(~(PAGE_SIZE-1)))
38 #define PAGE_ROUND_UP(x) \
39 ( (((ULONG_PTR)(x)) + PAGE_SIZE-1) & (~(PAGE_SIZE-1)) )
41 #define ROUND_TO_PAGES(Size) \
42 (((ULONG_PTR)(Size) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))
44 #define ROUND_TO_ALLOCATION_GRANULARITY(Size) \
45 (((ULONG_PTR)(Size) + MM_ALLOCATION_GRANULARITY - 1) \
46 & ~(MM_ALLOCATION_GRANULARITY - 1))
51 #define MMPFNUSE_PROCESSPRIVATE 0
52 #define MMPFNUSE_FILE 1
53 #define MMPFNUSE_PAGEFILEMAPPED 2
54 #define MMPFNUSE_PAGETABLE 3
55 #define MMPFNUSE_PAGEDPOOL 4
56 #define MMPFNUSE_NONPAGEDPOOL 5
57 #define MMPFNUSE_SYSTEMPTE 6
58 #define MMPFNUSE_SESSIONPRIVATE 7
59 #define MMPFNUSE_METAFILE 8
60 #define MMPFNUSE_AWEPAGE 9
61 #define MMPFNUSE_DRIVERLOCKPAGE 10
62 #define MMPFNUSE_KERNELSTACK 11
65 // Lock/Unlock Virtuam Memory Flags
71 // Flags for ProcessExecutionOptions
73 #define MEM_EXECUTE_OPTION_DISABLE 0x1
74 #define MEM_EXECUTE_OPTION_ENABLE 0x2
75 #define MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION 0x4
76 #define MEM_EXECUTE_OPTION_PERMANENT 0x8
77 #define MEM_EXECUTE_OPTION_EXECUTE_DISPATCH_ENABLE 0x10
78 #define MEM_EXECUTE_OPTION_IMAGE_DISPATCH_ENABLE 0x20
79 #define MEM_EXECUTE_OPTION_VALID_FLAGS 0x3F
81 #ifndef NTOS_MODE_USER
83 // Virtual Memory Flags
85 #define MEM_WRITE_WATCH 0x200000
86 #define MEM_PHYSICAL 0x400000
87 #define MEM_ROTATE 0x800000
88 #define MEM_IMAGE SEC_IMAGE
89 #define MEM_DOS_LIM 0x40000000
92 // Section Flags for NtCreateSection
94 #define SEC_NO_CHANGE 0x400000
95 #define SEC_FILE 0x800000
96 #define SEC_IMAGE 0x1000000
97 #define SEC_PROTECTED_IMAGE 0x2000000
98 #define SEC_RESERVE 0x4000000
99 #define SEC_COMMIT 0x8000000
100 #define SEC_NOCACHE 0x10000000
101 #define SEC_WRITECOMBINE 0x40000000
102 #define SEC_LARGE_PAGES 0x80000000
104 #define SEC_BASED 0x200000
107 // Section Inherit Flags for NtCreateSection
109 typedef enum _SECTION_INHERIT
118 typedef enum _POOL_TYPE
122 NonPagedPoolMustSucceed
,
124 NonPagedPoolCacheAligned
,
125 PagedPoolCacheAligned
,
126 NonPagedPoolCacheAlignedMustS
,
128 NonPagedPoolSession
= 32,
130 NonPagedPoolMustSucceedSession
,
131 DontUseThisTypeSession
,
132 NonPagedPoolCacheAlignedSession
,
133 PagedPoolCacheAlignedSession
,
134 NonPagedPoolCacheAlignedMustSSession
139 // Memory Manager Page Lists
141 typedef enum _MMLISTS
146 ModifiedPageList
= 3,
147 ModifiedNoWritePageList
= 4,
154 // Per Processor Non Paged Lookaside List IDs
156 typedef enum _PP_NPAGED_LOOKASIDE_NUMBER
158 LookasideSmallIrpList
= 0,
159 LookasideLargeIrpList
= 1,
160 LookasideMdlList
= 2,
161 LookasideCreateInfoList
= 3,
162 LookasideNameBufferList
= 4,
163 LookasideTwilightList
= 5,
164 LookasideCompletionList
= 6,
165 LookasideMaximumList
= 7
166 } PP_NPAGED_LOOKASIDE_NUMBER
;
169 // Memory Information Classes for NtQueryVirtualMemory
171 typedef enum _MEMORY_INFORMATION_CLASS
173 MemoryBasicInformation
,
174 MemoryWorkingSetList
,
176 MemoryBasicVlmInformation
,
177 MemoryWorkingSetExList
178 } MEMORY_INFORMATION_CLASS
;
181 // Section Information Clasess for NtQuerySection
183 typedef enum _SECTION_INFORMATION_CLASS
185 SectionBasicInformation
,
186 SectionImageInformation
,
187 } SECTION_INFORMATION_CLASS
;
192 typedef enum _MI_VAD_TYPE
195 VadDevicePhysicalMemory
,
202 } MI_VAD_TYPE
, *PMI_VAD_TYPE
;
204 #ifdef NTOS_MODE_USER
207 // Virtual Memory Counters
209 typedef struct _VM_COUNTERS
211 SIZE_T PeakVirtualSize
;
213 ULONG PageFaultCount
;
214 SIZE_T PeakWorkingSetSize
;
215 SIZE_T WorkingSetSize
;
216 SIZE_T QuotaPeakPagedPoolUsage
;
217 SIZE_T QuotaPagedPoolUsage
;
218 SIZE_T QuotaPeakNonPagedPoolUsage
;
219 SIZE_T QuotaNonPagedPoolUsage
;
220 SIZE_T PagefileUsage
;
221 SIZE_T PeakPagefileUsage
;
222 } VM_COUNTERS
, *PVM_COUNTERS
;
224 typedef struct _VM_COUNTERS_EX
226 SIZE_T PeakVirtualSize
;
228 ULONG PageFaultCount
;
229 SIZE_T PeakWorkingSetSize
;
230 SIZE_T WorkingSetSize
;
231 SIZE_T QuotaPeakPagedPoolUsage
;
232 SIZE_T QuotaPagedPoolUsage
;
233 SIZE_T QuotaPeakNonPagedPoolUsage
;
234 SIZE_T QuotaNonPagedPoolUsage
;
235 SIZE_T PagefileUsage
;
236 SIZE_T PeakPagefileUsage
;
238 } VM_COUNTERS_EX
, *PVM_COUNTERS_EX
;
242 // Sub-Information Types for PFN Identity
244 typedef struct _MEMORY_FRAME_INFORMATION
246 ULONGLONG UseDescription
:4;
247 ULONGLONG ListDescription
:3;
248 ULONGLONG Reserved0
:1;
250 ULONGLONG DontUse
:48;
251 ULONGLONG Priority
:3;
252 ULONGLONG Reserved
:4;
253 } MEMORY_FRAME_INFORMATION
, *PMEMORY_FRAME_INFORMATION
;
255 typedef struct _FILEOFFSET_INFORMATION
259 ULONGLONG Reserved
:7;
260 } FILEOFFSET_INFORMATION
, *PFILEOFFSET_INFORMATION
;
262 typedef struct _PAGEDIR_INFORMATION
265 ULONGLONG PageDirectoryBase
:48;
266 ULONGLONG Reserved
:7;
267 } PAGEDIR_INFORMATION
, *PPAGEDIR_INFORMATION
;
269 typedef struct _UNIQUE_PROCESS_INFORMATION
272 ULONGLONG UniqueProcessKey
:48;
273 ULONGLONG Reserved
:7;
274 } UNIQUE_PROCESS_INFORMATION
, *PUNIQUE_PROCESS_INFORMATION
;
277 // PFN Identity Data Structure
279 typedef struct _MMPFN_IDENTITY
283 MEMORY_FRAME_INFORMATION e1
;
284 FILEOFFSET_INFORMATION e2
;
285 PAGEDIR_INFORMATION e3
;
286 UNIQUE_PROCESS_INFORMATION e4
;
288 SIZE_T PageFrameIndex
;
297 PVOID UniqueFileObjectKey
;
298 PVOID ProtoPteAddress
;
299 PVOID VirtualAddress
;
301 } MMPFN_IDENTITY
, *PMMPFN_IDENTITY
;
304 // List of Working Sets
306 typedef struct _MEMORY_WORKING_SET_LIST
309 ULONG WorkingSetList
[1];
310 } MEMORY_WORKING_SET_LIST
, *PMEMORY_WORKING_SET_LIST
;
313 // Memory Information Structures for NtQueryVirtualMemory
317 UNICODE_STRING SectionFileName
;
318 } MEMORY_SECTION_NAME
, *PMEMORY_SECTION_NAME
;
321 // Section Information Structures for NtQuerySection
323 typedef struct _SECTION_BASIC_INFORMATION
328 } SECTION_BASIC_INFORMATION
, *PSECTION_BASIC_INFORMATION
;
330 typedef struct _SECTION_IMAGE_INFORMATION
332 PVOID TransferAddress
;
334 SIZE_T MaximumStackSize
;
335 SIZE_T CommittedStackSize
;
341 USHORT SubSystemMinorVersion
;
342 USHORT SubSystemMajorVersion
;
344 ULONG SubSystemVersion
;
347 USHORT ImageCharacteristics
;
348 USHORT DllCharacteristics
;
350 BOOLEAN ImageContainsCode
;
351 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
356 UCHAR ComPlusNativeReady
:1;
357 UCHAR ComPlusILOnly
:1;
358 UCHAR ImageDynamicallyRelocated
:1;
359 UCHAR ImageMappedFlat
:1;
369 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
374 } SECTION_IMAGE_INFORMATION
, *PSECTION_IMAGE_INFORMATION
;
376 #ifndef NTOS_MODE_USER
379 // Section Extension Information
381 typedef struct _MMEXTEND_INFO
383 ULONGLONG CommittedSize
;
384 ULONG ReferenceCount
;
385 } MMEXTEND_INFO
, *PMMEXTEND_INFO
;
388 // Segment and Segment Flags
390 typedef struct _SEGMENT_FLAGS
392 ULONG TotalNumberOfPtes4132
:10;
393 ULONG ExtraSharedWowSubsections
:1;
396 } SEGMENT_FLAGS
, *PSEGMENT_FLAGS
;
398 typedef struct _SEGMENT
400 struct _CONTROL_AREA
*ControlArea
;
401 ULONG TotalNumberOfPtes
;
402 ULONG NonExtendedPtes
;
404 ULONGLONG SizeOfSegment
;
405 MMPTE SegmentPteTemplate
;
406 ULONG NumberOfCommittedPages
;
407 PMMEXTEND_INFO ExtendInfo
;
408 SEGMENT_FLAGS SegmentFlags
;
412 SIZE_T ImageCommitment
;
413 PEPROCESS CreatingProcess
;
417 PSECTION_IMAGE_INFORMATION ImageInformation
;
422 } SEGMENT
, *PSEGMENT
;
424 typedef struct _MAPPED_FILE_SEGMENT
426 struct _CONTROL_AREA
*ControlArea
;
427 ULONG TotalNumberOfPtes
;
428 ULONG NonExtendedPtes
;
430 UINT64 SizeOfSegment
;
431 MMPTE SegmentPteTemplate
;
432 SIZE_T NumberOfCommittedPages
;
433 PMMEXTEND_INFO ExtendInfo
;
434 SEGMENT_FLAGS SegmentFlags
;
436 struct _MSUBSECTION
*LastSubsectionHint
;
437 } MAPPED_FILE_SEGMENT
, *PMAPPED_FILE_SEGMENT
;
440 // Event Counter Structure
442 typedef struct _EVENT_COUNTER
444 SLIST_ENTRY ListEntry
;
447 } EVENT_COUNTER
, *PEVENT_COUNTER
;
452 typedef struct _MMSECTION_FLAGS
454 ULONG BeingDeleted
:1;
455 ULONG BeingCreated
:1;
457 ULONG NoModifiedWriting
:1;
464 ULONG PhysicalMemory
:1;
470 ULONG UserReference
:1;
471 ULONG GlobalMemory
:1;
472 ULONG DeleteOnClose
:1;
473 ULONG FilePointerNull
:1;
474 ULONG DebugSymbolsLoaded
:1;
475 ULONG SetMappedFileIoComplete
:1;
476 ULONG CollidedFlush
:1;
479 ULONG ImageMappedInSystemSpace
:1;
480 ULONG UserWritable
:1;
482 ULONG GlobalOnlyPerSession
:1;
484 ULONG WriteCombined
:1;
486 } MMSECTION_FLAGS
, *PMMSECTION_FLAGS
;
488 typedef struct _MMSUBSECTION_FLAGS
492 ULONG SubsectionStatic
:1;
493 ULONG GlobalMemory
:1;
496 ULONG StartingSector4132
:10;
497 ULONG SectorEndOffset
:12;
498 } MMSUBSECTION_FLAGS
, *PMMSUBSECTION_FLAGS
;
500 typedef struct _MMSUBSECTION_FLAGS2
502 ULONG SubsectionAccessed
:1;
503 ULONG SubsectionConverted
:1;
505 } MMSUBSECTION_FLAGS2
;
508 // Control Area Structures
510 typedef struct _CONTROL_AREA
513 LIST_ENTRY DereferenceList
;
514 ULONG NumberOfSectionReferences
;
515 ULONG NumberOfPfnReferences
;
516 ULONG NumberOfMappedViews
;
517 ULONG NumberOfSystemCacheViews
;
518 ULONG NumberOfUserReferences
;
522 MMSECTION_FLAGS Flags
;
524 PFILE_OBJECT FilePointer
;
525 PEVENT_COUNTER WaitingForDeletion
;
526 USHORT ModifiedWriteCount
;
527 USHORT FlushInProgressCount
;
528 ULONG WritableUserReferences
;
530 } CONTROL_AREA
, *PCONTROL_AREA
;
532 typedef struct _LARGE_CONTROL_AREA
535 LIST_ENTRY DereferenceList
;
536 ULONG NumberOfSectionReferences
;
537 ULONG NumberOfPfnReferences
;
538 ULONG NumberOfMappedViews
;
539 ULONG NumberOfSystemCacheViews
;
540 ULONG NumberOfUserReferences
;
544 MMSECTION_FLAGS Flags
;
546 PFILE_OBJECT FilePointer
;
547 PEVENT_COUNTER WaitingForDeletion
;
548 USHORT ModifiedWriteCount
;
549 USHORT FlushInProgressCount
;
550 ULONG WritableUserReferences
;
553 LIST_ENTRY UserGlobalList
;
555 } LARGE_CONTROL_AREA
, *PLARGE_CONTROL_AREA
;
558 // Subsection and Mapped Subsection
560 typedef struct _SUBSECTION
562 PCONTROL_AREA ControlArea
;
566 MMSUBSECTION_FLAGS SubsectionFlags
;
568 ULONG StartingSector
;
569 ULONG NumberOfFullSectors
;
570 PMMPTE SubsectionBase
;
572 ULONG PtesInSubsection
;
573 struct _SUBSECTION
*NextSubsection
;
574 } SUBSECTION
, *PSUBSECTION
;
576 typedef struct _MSUBSECTION
578 PCONTROL_AREA ControlArea
;
582 MMSUBSECTION_FLAGS SubsectionFlags
;
584 ULONG StartingSector
;
585 ULONG NumberOfFullSectors
;
586 PMMPTE SubsectionBase
;
588 ULONG PtesInSubsection
;
589 struct _SUBSECTION
*NextSubsection
;
590 LIST_ENTRY DereferenceList
;
591 ULONG_PTR NumberOfMappedViews
;
595 MMSUBSECTION_FLAGS2 SubsectionFlags2
;
597 } MSUBSECTION
, *PMSUBSECTION
;
602 typedef struct _SEGMENT_OBJECT
605 ULONG TotalNumberOfPtes
;
606 LARGE_INTEGER SizeOfSegment
;
607 ULONG NonExtendedPtes
;
608 ULONG ImageCommitment
;
609 PCONTROL_AREA ControlArea
;
610 PSUBSECTION Subsection
;
611 PLARGE_CONTROL_AREA LargeControlArea
;
612 PMMSECTION_FLAGS MmSectionFlags
;
613 PMMSUBSECTION_FLAGS MmSubSectionFlags
;
614 } SEGMENT_OBJECT
, *PSEGMENT_OBJECT
;
619 typedef struct _SECTION_OBJECT
626 PSEGMENT_OBJECT Segment
;
627 } SECTION_OBJECT
, *PSECTION_OBJECT
;
630 // Generic Address Range Structure
632 typedef struct _ADDRESS_RANGE
639 } ADDRESS_RANGE
, *PADDRESS_RANGE
;
642 // Node in Memory Manager's AVL Table
644 typedef struct _MMADDRESS_NODE
649 struct _MMADDRESS_NODE
*Parent
;
651 struct _MMADDRESS_NODE
*LeftChild
;
652 struct _MMADDRESS_NODE
*RightChild
;
653 ULONG_PTR StartingVpn
;
655 } MMADDRESS_NODE
, *PMMADDRESS_NODE
;
658 // Memory Manager AVL Table for VADs and other descriptors
660 typedef struct _MM_AVL_TABLE
662 MMADDRESS_NODE BalancedRoot
;
663 ULONG_PTR DepthOfTree
:5;
666 ULONG_PTR NumberGenericTableElements
:56;
668 ULONG_PTR NumberGenericTableElements
:24;
672 } MM_AVL_TABLE
, *PMM_AVL_TABLE
;
675 // Virtual Adress List used in VADs
677 typedef struct _MMADDRESS_LIST
681 } MMADDRESS_LIST
, *PMMADDRESS_LIST
;
684 // Flags used in the VAD
686 typedef struct _MMVAD_FLAGS
689 ULONG_PTR CommitCharge
:51;
691 ULONG_PTR CommitCharge
:19;
693 ULONG_PTR NoChange
:1;
695 ULONG_PTR MemCommit
:1;
696 ULONG_PTR Protection
:5;
698 ULONG_PTR PrivateMemory
:1;
699 } MMVAD_FLAGS
, *PMMVAD_FLAGS
;
702 // Extended flags used in the VAD
704 typedef struct _MMVAD_FLAGS2
709 ULONG MultipleSecured
:1;
712 ULONG ExtendableFile
:1;
715 } MMVAD_FLAGS2
, *PMMVAD_FLAGS2
;
718 // Virtual Address Descriptor (VAD) Structure
720 typedef struct _MMVAD
725 struct _MMVAD
*Parent
;
727 struct _MMVAD
*LeftChild
;
728 struct _MMVAD
*RightChild
;
729 ULONG_PTR StartingVpn
;
734 MMVAD_FLAGS VadFlags
;
736 PCONTROL_AREA ControlArea
;
737 PMMPTE FirstPrototypePte
;
738 PMMPTE LastContiguousPte
;
742 MMVAD_FLAGS2 VadFlags2
;
747 // Long VAD used in section and private allocations
749 typedef struct _MMVAD_LONG
758 ULONG_PTR StartingVpn
;
763 MMVAD_FLAGS VadFlags
;
765 PCONTROL_AREA ControlArea
;
766 PMMPTE FirstPrototypePte
;
767 PMMPTE LastContiguousPte
;
771 MMVAD_FLAGS2 VadFlags2
;
776 MMADDRESS_LIST Secured
;
781 PMMEXTEND_INFO ExtendedInfo
;
783 } MMVAD_LONG
, *PMMVAD_LONG
;
786 // Short VAD used in virtual memory allocations
788 typedef struct _MMVAD_SHORT
797 ULONG_PTR StartingVpn
;
802 MMVAD_FLAGS VadFlags
;
804 } MMVAD_SHORT
, *PMMVAD_SHORT
;
807 // Actual Section Object
809 typedef struct _SECTION
811 MMADDRESS_NODE Address
;
813 LARGE_INTEGER SizeOfSection
;
817 MMSECTION_FLAGS Flags
;
819 ULONG InitialPageProtection
;
820 } SECTION
, *PSECTION
;
823 // Memory Manager Working Set Structures
825 typedef struct _MMWSLENTRY
828 ULONG_PTR LockedInWs
:1;
829 ULONG_PTR LockedInMemory
:1;
830 ULONG_PTR Protection
:5;
834 ULONG_PTR VirtualPageNumber
: MM_PAGE_FRAME_NUMBER_SIZE
;
835 } MMWSLENTRY
, *PMMWSLENTRY
;
837 typedef struct _MMWSLE
841 PVOID VirtualAddress
;
847 typedef struct _MMWSLE_HASH
851 } MMWSLE_HASH
, *PMMWSLE_HASH
;
853 typedef struct _MMWSL
860 ULONG LastInitializedWsle
;
861 ULONG NonDirectCount
;
862 PMMWSLE_HASH HashTable
;
864 ULONG NumberOfCommittedPageTables
;
865 PVOID HashTableStart
;
866 PVOID HighestPermittedHashAddress
;
867 ULONG NumberOfImageWaiters
;
869 USHORT UsedPageTableEntries
[768];
870 ULONG CommittedPageTables
[24];
874 // Flags for Memory Support Structure
876 typedef struct _MMSUPPORT_FLAGS
878 ULONG SessionSpace
:1;
879 ULONG BeingTrimmed
:1;
880 ULONG SessionLeader
:1;
882 ULONG MaximumWorkingSetHard
:1;
884 ULONG MinimumWorkingSetHard
:1;
886 ULONG MemoryPriority
:8;
887 ULONG GrowWsleHash
:1;
888 ULONG AcquiredUnsafe
:1;
890 } MMSUPPORT_FLAGS
, *PMMSUPPORT_FLAGS
;
893 // Per-Process Memory Manager Data
895 typedef struct _MMSUPPORT
897 #if (NTDDI_VERSION >= NTDDI_WS03)
898 LIST_ENTRY WorkingSetExpansionLinks
;
900 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
901 USHORT LastTrimpStamp
;
902 USHORT NextPageColor
;
904 LARGE_INTEGER LastTrimTime
;
906 MMSUPPORT_FLAGS Flags
;
907 ULONG PageFaultCount
;
908 ULONG PeakWorkingSetSize
;
909 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
912 ULONG GrowthSinceLastEstimate
;
914 ULONG MinimumWorkingSetSize
;
915 ULONG MaximumWorkingSetSize
;
916 PMMWSL VmWorkingSetList
;
917 #if (NTDDI_VERSION < NTDDI_WS03)
918 LIST_ENTRY WorkingSetExpansionLinks
;
921 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
923 ULONG WorkingSetPrivateSize
;
924 ULONG WorkingSetSizeOverhead
;
926 ULONG NextEstimationSlot
;
928 ULONG EstimatedAvailable
;
930 ULONG WorkingSetSize
;
931 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
934 EX_PUSH_LOCK WorkingSetMutex
;
935 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
938 } MMSUPPORT
, *PMMSUPPORT
;
941 // Memory Information Types
943 typedef struct _MEMORY_BASIC_INFORMATION
946 PVOID AllocationBase
;
947 ULONG AllocationProtect
;
952 } MEMORY_BASIC_INFORMATION
,*PMEMORY_BASIC_INFORMATION
;
955 // Driver Verifier Data
957 typedef struct _MM_DRIVER_VERIFIER_DATA
961 ULONG AcquireSpinLocks
;
962 ULONG SynchronizeExecutions
;
963 ULONG AllocationsAttempted
;
964 ULONG AllocationsSucceeded
;
965 ULONG AllocationsSucceededSpecialPool
;
966 ULONG AllocationsWithNoTag
;
969 ULONG AllocationsFailed
;
970 ULONG AllocationsFailedDeliberately
;
975 ULONG CurrentPagedPoolAllocations
;
976 ULONG CurrentNonPagedPoolAllocations
;
977 ULONG PeakPagedPoolAllocations
;
978 ULONG PeakNonPagedPoolAllocations
;
981 ULONG PeakPagedBytes
;
982 ULONG PeakNonPagedBytes
;
983 ULONG BurstAllocationsFailedDeliberately
;
986 } MM_DRIVER_VERIFIER_DATA
, *PMM_DRIVER_VERIFIER_DATA
;
989 // Internal Driver Verifier Table Data
991 typedef struct _DRIVER_SPECIFIED_VERIFIER_THUNKS
993 LIST_ENTRY ListEntry
;
994 struct _LDR_DATA_TABLE_ENTRY
*DataTableEntry
;
995 ULONG NumberOfThunks
;
996 } DRIVER_SPECIFIED_VERIFIER_THUNKS
, *PDRIVER_SPECIFIED_VERIFIER_THUNKS
;
1003 // Default heap size values. For user mode, these values are copied to a new
1004 // process's PEB by the kernel in MmCreatePeb. In kernel mode, RtlCreateHeap
1005 // reads these variables directly.
1007 // These variables should be considered "const"; they are written only once,
1008 // during MmInitSystem.
1010 extern SIZE_T MmHeapSegmentReserve
;
1011 extern SIZE_T MmHeapSegmentCommit
;
1012 extern SIZE_T MmHeapDeCommitTotalFreeThreshold
;
1013 extern SIZE_T MmHeapDeCommitFreeBlockThreshold
;
1016 // Section Object Type
1018 extern POBJECT_TYPE NTSYSAPI MmSectionObjectType
;
1024 #endif // !NTOS_MODE_USER
1030 #endif // _MMTYPES_H