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>
30 // Page-Rounding Macros
32 #define PAGE_ROUND_DOWN(x) \
33 (((ULONG_PTR)(x))&(~(PAGE_SIZE-1)))
34 #define PAGE_ROUND_UP(x) \
35 ( (((ULONG_PTR)(x)) + PAGE_SIZE-1) & (~(PAGE_SIZE-1)) )
37 #define ROUND_TO_PAGES(Size) \
38 (((ULONG_PTR)(Size) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))
40 #define ROUND_TO_ALLOCATION_GRANULARITY(Size) \
41 (((ULONG_PTR)(Size) + MM_ALLOCATION_GRANULARITY - 1) \
42 & ~(MM_ALLOCATION_GRANULARITY - 1))
47 #define MMPFNUSE_PROCESSPRIVATE 0
48 #define MMPFNUSE_FILE 1
49 #define MMPFNUSE_PAGEFILEMAPPED 2
50 #define MMPFNUSE_PAGETABLE 3
51 #define MMPFNUSE_PAGEDPOOL 4
52 #define MMPFNUSE_NONPAGEDPOOL 5
53 #define MMPFNUSE_SYSTEMPTE 6
54 #define MMPFNUSE_SESSIONPRIVATE 7
55 #define MMPFNUSE_METAFILE 8
56 #define MMPFNUSE_AWEPAGE 9
57 #define MMPFNUSE_DRIVERLOCKPAGE 10
58 #define MMPFNUSE_KERNELSTACK 11
61 // Lock/Unlock Virtuam Memory Flags
67 // Flags for ProcessExecutionOptions
69 #define MEM_EXECUTE_OPTION_DISABLE 0x1
70 #define MEM_EXECUTE_OPTION_ENABLE 0x2
71 #define MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION 0x4
72 #define MEM_EXECUTE_OPTION_PERMANENT 0x8
73 #define MEM_EXECUTE_OPTION_EXECUTE_DISPATCH_ENABLE 0x10
74 #define MEM_EXECUTE_OPTION_IMAGE_DISPATCH_ENABLE 0x20
75 #define MEM_EXECUTE_OPTION_VALID_FLAGS 0x3F
77 #ifndef NTOS_MODE_USER
79 // Virtual Memory Flags
81 #define MEM_WRITE_WATCH 0x200000
82 #define MEM_PHYSICAL 0x400000
83 #define MEM_ROTATE 0x800000
84 #define MEM_IMAGE SEC_IMAGE
85 #define MEM_DOS_LIM 0x40000000
88 // Section Flags for NtCreateSection
90 #define SEC_NO_CHANGE 0x400000
91 #define SEC_FILE 0x800000
92 #define SEC_IMAGE 0x1000000
93 #define SEC_PROTECTED_IMAGE 0x2000000
94 #define SEC_RESERVE 0x4000000
95 #define SEC_COMMIT 0x8000000
96 #define SEC_NOCACHE 0x10000000
97 #define SEC_WRITECOMBINE 0x40000000
98 #define SEC_LARGE_PAGES 0x80000000
100 #define SEC_BASED 0x200000
103 // Section Inherit Flags for NtCreateSection
105 typedef enum _SECTION_INHERIT
114 typedef enum _POOL_TYPE
118 NonPagedPoolMustSucceed
,
120 NonPagedPoolCacheAligned
,
121 PagedPoolCacheAligned
,
122 NonPagedPoolCacheAlignedMustS
,
124 NonPagedPoolSession
= 32,
126 NonPagedPoolMustSucceedSession
,
127 DontUseThisTypeSession
,
128 NonPagedPoolCacheAlignedSession
,
129 PagedPoolCacheAlignedSession
,
130 NonPagedPoolCacheAlignedMustSSession
135 // Memory Manager Page Lists
137 typedef enum _MMLISTS
142 ModifiedPageList
= 3,
143 ModifiedNoWritePageList
= 4,
150 // Per Processor Non Paged Lookaside List IDs
152 typedef enum _PP_NPAGED_LOOKASIDE_NUMBER
154 LookasideSmallIrpList
= 0,
155 LookasideLargeIrpList
= 1,
156 LookasideMdlList
= 2,
157 LookasideCreateInfoList
= 3,
158 LookasideNameBufferList
= 4,
159 LookasideTwilightList
= 5,
160 LookasideCompletionList
= 6,
161 LookasideMaximumList
= 7
162 } PP_NPAGED_LOOKASIDE_NUMBER
;
165 // Memory Information Classes for NtQueryVirtualMemory
167 typedef enum _MEMORY_INFORMATION_CLASS
169 MemoryBasicInformation
,
170 MemoryWorkingSetList
,
172 MemoryBasicVlmInformation
173 } MEMORY_INFORMATION_CLASS
;
176 // Section Information Clasess for NtQuerySection
178 typedef enum _SECTION_INFORMATION_CLASS
180 SectionBasicInformation
,
181 SectionImageInformation
,
182 } SECTION_INFORMATION_CLASS
;
187 typedef enum _MI_VAD_TYPE
190 VadDevicePhysicalMemory
,
197 } MI_VAD_TYPE
, *PMI_VAD_TYPE
;
199 #ifdef NTOS_MODE_USER
202 // Virtual Memory Counters
204 typedef struct _VM_COUNTERS
206 SIZE_T PeakVirtualSize
;
208 ULONG PageFaultCount
;
209 SIZE_T PeakWorkingSetSize
;
210 SIZE_T WorkingSetSize
;
211 SIZE_T QuotaPeakPagedPoolUsage
;
212 SIZE_T QuotaPagedPoolUsage
;
213 SIZE_T QuotaPeakNonPagedPoolUsage
;
214 SIZE_T QuotaNonPagedPoolUsage
;
215 SIZE_T PagefileUsage
;
216 SIZE_T PeakPagefileUsage
;
217 } VM_COUNTERS
, *PVM_COUNTERS
;
219 typedef struct _VM_COUNTERS_EX
221 SIZE_T PeakVirtualSize
;
223 ULONG PageFaultCount
;
224 SIZE_T PeakWorkingSetSize
;
225 SIZE_T WorkingSetSize
;
226 SIZE_T QuotaPeakPagedPoolUsage
;
227 SIZE_T QuotaPagedPoolUsage
;
228 SIZE_T QuotaPeakNonPagedPoolUsage
;
229 SIZE_T QuotaNonPagedPoolUsage
;
230 SIZE_T PagefileUsage
;
231 SIZE_T PeakPagefileUsage
;
233 } VM_COUNTERS_EX
, *PVM_COUNTERS_EX
;
237 // Sub-Information Types for PFN Identity
239 typedef struct _MEMORY_FRAME_INFORMATION
241 ULONGLONG UseDescription
:4;
242 ULONGLONG ListDescription
:3;
243 ULONGLONG Reserved0
:1;
245 ULONGLONG DontUse
:48;
246 ULONGLONG Priority
:3;
247 ULONGLONG Reserved
:4;
248 } MEMORY_FRAME_INFORMATION
, *PMEMORY_FRAME_INFORMATION
;
250 typedef struct _FILEOFFSET_INFORMATION
254 ULONGLONG Reserved
:7;
255 } FILEOFFSET_INFORMATION
, *PFILEOFFSET_INFORMATION
;
257 typedef struct _PAGEDIR_INFORMATION
260 ULONGLONG PageDirectoryBase
:48;
261 ULONGLONG Reserved
:7;
262 } PAGEDIR_INFORMATION
, *PPAGEDIR_INFORMATION
;
264 typedef struct _UNIQUE_PROCESS_INFORMATION
267 ULONGLONG UniqueProcessKey
:48;
268 ULONGLONG Reserved
:7;
269 } UNIQUE_PROCESS_INFORMATION
, *PUNIQUE_PROCESS_INFORMATION
;
272 // PFN Identity Data Structure
274 typedef struct _MMPFN_IDENTITY
278 MEMORY_FRAME_INFORMATION e1
;
279 FILEOFFSET_INFORMATION e2
;
280 PAGEDIR_INFORMATION e3
;
281 UNIQUE_PROCESS_INFORMATION e4
;
283 SIZE_T PageFrameIndex
;
292 PVOID UniqueFileObjectKey
;
293 PVOID ProtoPteAddress
;
294 PVOID VirtualAddress
;
296 } MMPFN_IDENTITY
, *PMMPFN_IDENTITY
;
299 // List of Working Sets
301 typedef struct _MEMORY_WORKING_SET_LIST
304 ULONG WorkingSetList
[1];
305 } MEMORY_WORKING_SET_LIST
, *PMEMORY_WORKING_SET_LIST
;
308 // Memory Information Structures for NtQueryVirtualMemory
312 UNICODE_STRING SectionFileName
;
313 WCHAR NameBuffer
[ANYSIZE_ARRAY
];
314 } MEMORY_SECTION_NAME
, *PMEMORY_SECTION_NAME
;
317 // Section Information Structures for NtQuerySection
319 typedef struct _SECTION_BASIC_INFORMATION
324 } SECTION_BASIC_INFORMATION
, *PSECTION_BASIC_INFORMATION
;
326 typedef struct _SECTION_IMAGE_INFORMATION
328 PVOID TransferAddress
;
330 SIZE_T MaximumStackSize
;
331 SIZE_T CommittedStackSize
;
337 USHORT SubSystemMinorVersion
;
338 USHORT SubSystemMajorVersion
;
340 ULONG SubSystemVersion
;
343 USHORT ImageCharacteristics
;
344 USHORT DllCharacteristics
;
346 UCHAR ImageContainsCode
;
351 } SECTION_IMAGE_INFORMATION
, *PSECTION_IMAGE_INFORMATION
;
353 #ifndef NTOS_MODE_USER
358 typedef struct _MMPTE
365 MMPTE_PROTOTYPE Proto
;
367 MMPTE_TRANSITION Trans
;
368 MMPTE_SUBSECTION Subsect
;
374 // Section Extension Information
376 typedef struct _MMEXTEND_INFO
378 ULONGLONG CommittedSize
;
379 ULONG ReferenceCount
;
380 } MMEXTEND_INFO
, *PMMEXTEND_INFO
;
383 // Segment and Segment Flags
385 typedef struct _SEGMENT_FLAGS
387 ULONG TotalNumberOfPtes4132
:10;
388 ULONG ExtraSharedWowSubsections
:1;
391 } SEGMENT_FLAGS
, *PSEGMENT_FLAGS
;
393 typedef struct _SEGMENT
395 struct _CONTROL_AREA
*ControlArea
;
396 ULONG TotalNumberOfPtes
;
397 ULONG NonExtendedPtes
;
399 ULONGLONG SizeOfSegment
;
400 MMPTE SegmentPteTemplate
;
401 ULONG NumberOfCommittedPages
;
402 PMMEXTEND_INFO ExtendInfo
;
403 SEGMENT_FLAGS SegmentFlags
;
407 SIZE_T ImageCommitment
;
408 PEPROCESS CreatingProcess
;
412 PSECTION_IMAGE_INFORMATION ImageInformation
;
417 } SEGMENT
, *PSEGMENT
;
419 typedef struct _MAPPED_FILE_SEGMENT
421 struct _CONTROL_AREA
*ControlArea
;
422 ULONG TotalNumberOfPtes
;
423 ULONG NonExtendedPtes
;
425 UINT64 SizeOfSegment
;
426 MMPTE SegmentPteTemplate
;
427 SIZE_T NumberOfCommittedPages
;
428 PMMEXTEND_INFO ExtendInfo
;
429 SEGMENT_FLAGS SegmentFlags
;
431 struct _MSUBSECTION
*LastSubsectionHint
;
432 } MAPPED_FILE_SEGMENT
, *PMAPPED_FILE_SEGMENT
;
435 // Event Counter Structure
437 typedef struct _EVENT_COUNTER
439 SLIST_ENTRY ListEntry
;
442 } EVENT_COUNTER
, *PEVENT_COUNTER
;
447 typedef struct _MMSECTION_FLAGS
449 ULONG BeingDeleted
:1;
450 ULONG BeingCreated
:1;
452 ULONG NoModifiedWriting
:1;
459 ULONG PhysicalMemory
:1;
465 ULONG UserReference
:1;
466 ULONG GlobalMemory
:1;
467 ULONG DeleteOnClose
:1;
468 ULONG FilePointerNull
:1;
469 ULONG DebugSymbolsLoaded
:1;
470 ULONG SetMappedFileIoComplete
:1;
471 ULONG CollidedFlush
:1;
474 ULONG ImageMappedInSystemSpace
:1;
475 ULONG UserWritable
:1;
477 ULONG GlobalOnlyPerSession
:1;
479 ULONG WriteCombined
:1;
481 } MMSECTION_FLAGS
, *PMMSECTION_FLAGS
;
483 typedef struct _MMSUBSECTION_FLAGS
487 ULONG SubsectionStatic
:1;
488 ULONG GlobalMemory
:1;
491 ULONG StartingSector4132
:10;
492 ULONG SectorEndOffset
:12;
493 } MMSUBSECTION_FLAGS
, *PMMSUBSECTION_FLAGS
;
495 typedef struct _MMSUBSECTION_FLAGS2
497 ULONG SubsectionAccessed
:1;
498 ULONG SubsectionConverted
:1;
500 } MMSUBSECTION_FLAGS2
;
503 // Control Area Structures
505 typedef struct _CONTROL_AREA
508 LIST_ENTRY DereferenceList
;
509 ULONG NumberOfSectionReferences
;
510 ULONG NumberOfPfnReferences
;
511 ULONG NumberOfMappedViews
;
512 ULONG NumberOfSystemCacheViews
;
513 ULONG NumberOfUserReferences
;
517 MMSECTION_FLAGS Flags
;
519 PFILE_OBJECT FilePointer
;
520 PEVENT_COUNTER WaitingForDeletion
;
521 USHORT ModifiedWriteCount
;
522 USHORT FlushInProgressCount
;
523 ULONG WritableUserReferences
;
525 } CONTROL_AREA
, *PCONTROL_AREA
;
527 typedef struct _LARGE_CONTROL_AREA
530 LIST_ENTRY DereferenceList
;
531 ULONG NumberOfSectionReferences
;
532 ULONG NumberOfPfnReferences
;
533 ULONG NumberOfMappedViews
;
534 ULONG NumberOfSystemCacheViews
;
535 ULONG NumberOfUserReferences
;
539 MMSECTION_FLAGS Flags
;
541 PFILE_OBJECT FilePointer
;
542 PEVENT_COUNTER WaitingForDeletion
;
543 USHORT ModifiedWriteCount
;
544 USHORT FlushInProgressCount
;
545 ULONG WritableUserReferences
;
548 LIST_ENTRY UserGlobalList
;
550 } LARGE_CONTROL_AREA
, *PLARGE_CONTROL_AREA
;
553 // Subsection and Mapped Subsection
555 typedef struct _SUBSECTION
557 PCONTROL_AREA ControlArea
;
561 MMSUBSECTION_FLAGS SubsectionFlags
;
563 ULONG StartingSector
;
564 ULONG NumberOfFullSectors
;
565 PMMPTE SubsectionBase
;
567 ULONG PtesInSubsection
;
568 struct _SUBSECTION
*NextSubsection
;
569 } SUBSECTION
, *PSUBSECTION
;
571 typedef struct _MSUBSECTION
573 PCONTROL_AREA ControlArea
;
577 MMSUBSECTION_FLAGS SubsectionFlags
;
579 ULONG StartingSector
;
580 ULONG NumberOfFullSectors
;
581 PMMPTE SubsectionBase
;
583 ULONG PtesInSubsection
;
584 struct _SUBSECTION
*NextSubsection
;
585 LIST_ENTRY DereferenceList
;
586 ULONG_PTR NumberOfMappedViews
;
590 MMSUBSECTION_FLAGS2 SubsectionFlags2
;
592 } MSUBSECTION
, *PMSUBSECTION
;
597 typedef struct _SEGMENT_OBJECT
600 ULONG TotalNumberOfPtes
;
601 LARGE_INTEGER SizeOfSegment
;
602 ULONG NonExtendedPtes
;
603 ULONG ImageCommitment
;
604 PCONTROL_AREA ControlArea
;
605 PSUBSECTION Subsection
;
606 PLARGE_CONTROL_AREA LargeControlArea
;
607 PMMSECTION_FLAGS MmSectionFlags
;
608 PMMSUBSECTION_FLAGS MmSubSectionFlags
;
609 } SEGMENT_OBJECT
, *PSEGMENT_OBJECT
;
614 typedef struct _SECTION_OBJECT
620 PSEGMENT_OBJECT Segment
;
621 } SECTION_OBJECT
, *PSECTION_OBJECT
;
624 // Generic Address Range Structure
626 typedef struct _ADDRESS_RANGE
633 } ADDRESS_RANGE
, *PADDRESS_RANGE
;
636 // Node in Memory Manager's AVL Table
638 typedef struct _MMADDRESS_NODE
643 struct _MMADDRESS_NODE
*Parent
;
645 struct _MMADDRESS_NODE
*LeftChild
;
646 struct _MMADDRESS_NODE
*RightChild
;
647 ULONG_PTR StartingVpn
;
649 } MMADDRESS_NODE
, *PMMADDRESS_NODE
;
652 // Memory Manager AVL Table for VADs and other descriptors
654 typedef struct _MM_AVL_TABLE
656 MMADDRESS_NODE BalancedRoot
;
657 ULONG_PTR DepthOfTree
:5;
660 ULONG_PTR NumberGenericTableElements
:56;
662 ULONG_PTR NumberGenericTableElements
:24;
666 } MM_AVL_TABLE
, *PMM_AVL_TABLE
;
669 // Virtual Adress List used in VADs
671 typedef struct _MMADDRESS_LIST
675 } MMADDRESS_LIST
, *PMMADDRESS_LIST
;
678 // Flags used in the VAD
680 typedef struct _MMVAD_FLAGS
683 ULONG_PTR CommitCharge
:51;
685 ULONG_PTR CommitCharge
:19;
687 ULONG_PTR NoChange
:1;
689 ULONG_PTR MemCommit
:1;
690 ULONG_PTR Protection
:5;
692 ULONG_PTR PrivateMemory
:1;
693 } MMVAD_FLAGS
, *PMMVAD_FLAGS
;
696 // Extended flags used in the VAD
698 typedef struct _MMVAD_FLAGS2
703 ULONG MultipleSecured
:1;
706 ULONG ExtendableFile
:1;
709 } MMVAD_FLAGS2
, *PMMVAD_FLAGS2
;
712 // Virtual Address Descriptor (VAD) Structure
714 typedef struct _MMVAD
719 struct _MMVAD
*Parent
;
721 struct _MMVAD
*LeftChild
;
722 struct _MMVAD
*RightChild
;
723 ULONG_PTR StartingVpn
;
728 MMVAD_FLAGS VadFlags
;
730 PCONTROL_AREA ControlArea
;
731 PMMPTE FirstPrototypePte
;
732 PMMPTE LastContiguousPte
;
736 MMVAD_FLAGS2 VadFlags2
;
741 // Long VAD used in section and private allocations
743 typedef struct _MMVAD_LONG
752 ULONG_PTR StartingVpn
;
757 MMVAD_FLAGS VadFlags
;
759 PCONTROL_AREA ControlArea
;
760 PMMPTE FirstPrototypePte
;
761 PMMPTE LastContiguousPte
;
765 MMVAD_FLAGS2 VadFlags2
;
770 MMADDRESS_LIST Secured
;
775 PMMEXTEND_INFO ExtendedInfo
;
777 } MMVAD_LONG
, *PMMVAD_LONG
;
780 // Short VAD used in virtual memory allocations
782 typedef struct _MMVAD_SHORT
791 ULONG_PTR StartingVpn
;
796 MMVAD_FLAGS VadFlags
;
798 } MMVAD_SHORT
, *PMMVAD_SHORT
;
801 // Actual Section Object
803 typedef struct _SECTION
805 MMADDRESS_NODE Address
;
807 LARGE_INTEGER SizeOfSection
;
811 MMSECTION_FLAGS Flags
;
813 ULONG InitialPageProtection
;
814 } SECTION
, *PSECTION
;
817 // Memory Manager Working Set Structures
819 typedef struct _MMWSLENTRY
823 ULONG LockedInMemory
:1;
828 ULONG VirtualPageNumber
:20;
829 } MMWSLENTRY
, *PMMWSLENTRY
;
831 typedef struct _MMWSLE
835 PVOID VirtualAddress
;
841 typedef struct _MMWSLE_HASH
845 } MMWSLE_HASH
, *PMMWSLE_HASH
;
847 typedef struct _MMWSL
854 ULONG LastInitializedWsle
;
855 ULONG NonDirectCount
;
856 PMMWSLE_HASH HashTable
;
858 ULONG NumberOfCommittedPageTables
;
859 PVOID HashTableStart
;
860 PVOID HighestPermittedHashAddress
;
861 ULONG NumberOfImageWaiters
;
863 USHORT UsedPageTableEntries
[768];
864 ULONG CommittedPageTables
[24];
868 // Flags for Memory Support Structure
870 typedef struct _MMSUPPORT_FLAGS
872 ULONG SessionSpace
:1;
873 ULONG BeingTrimmed
:1;
874 ULONG SessionLeader
:1;
876 ULONG MaximumWorkingSetHard
:1;
878 ULONG MinimumWorkingSetHard
:1;
880 ULONG MemoryPriority
:8;
881 ULONG GrowWsleHash
:1;
882 ULONG AcquiredUnsafe
:1;
884 } MMSUPPORT_FLAGS
, *PMMSUPPORT_FLAGS
;
887 // Per-Process Memory Manager Data
889 typedef struct _MMSUPPORT
891 #if (NTDDI_VERSION >= NTDDI_WS03)
892 LIST_ENTRY WorkingSetExpansionLinks
;
894 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
895 USHORT LastTrimpStamp
;
896 USHORT NextPageColor
;
898 LARGE_INTEGER LastTrimTime
;
900 MMSUPPORT_FLAGS Flags
;
901 ULONG PageFaultCount
;
902 ULONG PeakWorkingSetSize
;
903 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
906 ULONG GrowthSinceLastEstimate
;
908 ULONG MinimumWorkingSetSize
;
909 ULONG MaximumWorkingSetSize
;
910 PMMWSL VmWorkingSetList
;
911 #if (NTDDI_VERSION < NTDDI_WS03)
912 LIST_ENTRY WorkingSetExpansionLinks
;
915 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
917 ULONG WorkingSetPrivateSize
;
918 ULONG WorkingSetSizeOverhead
;
920 ULONG NextEstimationSlot
;
922 ULONG EstimatedAvailable
;
924 ULONG WorkingSetSize
;
925 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
928 EX_PUSH_LOCK WorkingSetMutex
;
929 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
932 } MMSUPPORT
, *PMMSUPPORT
;
935 // Memory Information Types
937 typedef struct _MEMORY_BASIC_INFORMATION
940 PVOID AllocationBase
;
941 ULONG AllocationProtect
;
946 } MEMORY_BASIC_INFORMATION
,*PMEMORY_BASIC_INFORMATION
;
949 // Driver Verifier Data
951 typedef struct _MM_DRIVER_VERIFIER_DATA
955 ULONG AcquireSpinLocks
;
956 ULONG SynchronizeExecutions
;
957 ULONG AllocationsAttempted
;
958 ULONG AllocationsSucceeded
;
959 ULONG AllocationsSucceededSpecialPool
;
960 ULONG AllocationsWithNoTag
;
963 ULONG AllocationsFailed
;
964 ULONG AllocationsFailedDeliberately
;
969 ULONG CurrentPagedPoolAllocations
;
970 ULONG CurrentNonPagedPoolAllocations
;
971 ULONG PeakPagedPoolAllocations
;
972 ULONG PeakNonPagedPoolAllocations
;
975 ULONG PeakPagedBytes
;
976 ULONG PeakNonPagedBytes
;
977 ULONG BurstAllocationsFailedDeliberately
;
980 } MM_DRIVER_VERIFIER_DATA
, *PMM_DRIVER_VERIFIER_DATA
;
983 // Internal Driver Verifier Table Data
985 typedef struct _DRIVER_SPECIFIED_VERIFIER_THUNKS
987 LIST_ENTRY ListEntry
;
988 struct _LDR_DATA_TABLE_ENTRY
*DataTableEntry
;
989 ULONG NumberOfThunks
;
990 } DRIVER_SPECIFIED_VERIFIER_THUNKS
, *PDRIVER_SPECIFIED_VERIFIER_THUNKS
;
993 // Default heap size values. For user mode, these values are copied to a new
994 // process's PEB by the kernel in MmCreatePeb. In kernel mode, RtlCreateHeap
995 // reads these variables directly.
997 // These variables should be considered "const"; they are written only once,
998 // during MmInitSystem.
1000 extern SIZE_T MmHeapSegmentReserve
;
1001 extern SIZE_T MmHeapSegmentCommit
;
1002 extern SIZE_T MmHeapDeCommitTotalFreeThreshold
;
1003 extern SIZE_T MmHeapDeCommitFreeBlockThreshold
;
1006 // Section Object Type
1008 extern POBJECT_TYPE NTSYSAPI MmSectionObjectType
;
1010 #endif // !NTOS_MODE_USER
1012 #endif // _MMTYPES_H