1 #ifndef __INCLUDE_INTERNAL_MM_H
2 #define __INCLUDE_INTERNAL_MM_H
4 #include <internal/arch/mm.h>
6 /* TYPES *********************************************************************/
10 extern ULONG MiFreeSwapPages
;
11 extern ULONG MiUsedSwapPages
;
12 extern ULONG MmPagedPoolSize
;
13 extern ULONG MmTotalPagedPoolQuota
;
14 extern ULONG MmTotalNonPagedPoolQuota
;
15 extern PHYSICAL_ADDRESS MmSharedDataPagePhysicalAddress
;
17 extern PVOID MmPagedPoolBase
;
18 extern ULONG MmPagedPoolSize
;
22 struct _MM_RMAP_ENTRY
;
24 typedef ULONG SWAPENTRY
;
25 typedef ULONG PFN_TYPE
, *PPFN_TYPE
;
27 #define MEMORY_AREA_INVALID (0)
28 #define MEMORY_AREA_SECTION_VIEW (1)
29 #define MEMORY_AREA_CONTINUOUS_MEMORY (2)
30 #define MEMORY_AREA_NO_CACHE (3)
31 #define MEMORY_AREA_IO_MAPPING (4)
32 #define MEMORY_AREA_SYSTEM (5)
33 #define MEMORY_AREA_MDL_MAPPING (7)
34 #define MEMORY_AREA_VIRTUAL_MEMORY (8)
35 #define MEMORY_AREA_CACHE_SEGMENT (9)
36 #define MEMORY_AREA_SHARED_DATA (10)
37 #define MEMORY_AREA_KERNEL_STACK (11)
38 #define MEMORY_AREA_PAGED_POOL (12)
39 #define MEMORY_AREA_NO_ACCESS (13)
40 #define MEMORY_AREA_PEB_OR_TEB (14)
42 #define MM_PHYSICAL_PAGE_MPW_PENDING (0x8)
44 #define MM_CORE_DUMP_TYPE_NONE (0x0)
45 #define MM_CORE_DUMP_TYPE_MINIMAL (0x1)
46 #define MM_CORE_DUMP_TYPE_FULL (0x2)
48 #define MM_PAGEOP_PAGEIN (1)
49 #define MM_PAGEOP_PAGEOUT (2)
50 #define MM_PAGEOP_PAGESYNCH (3)
51 #define MM_PAGEOP_ACCESSFAULT (4)
53 #define PAGE_TO_SECTION_PAGE_DIRECTORY_OFFSET(x) \
56 #define PAGE_TO_SECTION_PAGE_TABLE_OFFSET(x) \
57 ((((x)) % (4*1024*1024)) / (4*1024))
59 #define NR_SECTION_PAGE_TABLES 1024
60 #define NR_SECTION_PAGE_ENTRIES 1024
62 #define TEB_BASE 0x7FFDE000
63 #define KPCR_BASE 0xFF000000
65 /* Although Microsoft says this isn't hardcoded anymore,
66 they won't be able to change it. Stuff depends on it */
67 #define MM_VIRTMEM_GRANULARITY (64 * 1024)
69 #define STATUS_MM_RESTART_OPERATION ((NTSTATUS)0xD0000001)
72 * Additional flags for protection attributes
74 #define PAGE_WRITETHROUGH (1024)
75 #define PAGE_SYSTEM (2048)
77 #define SEC_PHYSICALMEMORY (0x80000000)
79 #define MM_PAGEFILE_SEGMENT (0x1)
80 #define MM_DATAFILE_SEGMENT (0x2)
86 #define MC_MAXIMUM (4)
88 #define PAGED_POOL_MASK 1
89 #define MUST_SUCCEED_POOL_MASK 2
90 #define CACHE_ALIGNED_POOL_MASK 4
91 #define QUOTA_POOL_MASK 8
92 #define SESSION_POOL_MASK 32
93 #define VERIFIER_POOL_MASK 64
95 #define MM_PAGED_POOL_SIZE (100*1024*1024)
96 #define MM_NONPAGED_POOL_SIZE (100*1024*1024)
99 * Paged and non-paged pools are 8-byte aligned
101 #define MM_POOL_ALIGNMENT 8
104 * Maximum size of the kmalloc area (this is totally arbitary)
106 #define MM_KERNEL_MAP_SIZE (16*1024*1024)
107 #define MM_KERNEL_MAP_BASE (0xf0c00000)
110 * FIXME - different architectures have different cache line sizes...
112 #define MM_CACHE_LINE_SIZE 32
114 #define MM_ROUND_UP(x,s) \
115 ((PVOID)(((ULONG_PTR)(x)+(s)-1) & ~((ULONG_PTR)(s)-1)))
117 #define MM_ROUND_DOWN(x,s) \
118 ((PVOID)(((ULONG_PTR)(x)) & ~((ULONG_PTR)(s)-1)))
120 #define PAGE_FLAGS_VALID_FROM_USER_MODE \
125 PAGE_EXECUTE_READ | \
126 PAGE_EXECUTE_READWRITE | \
127 PAGE_EXECUTE_WRITECOPY | \
132 #define PAGE_IS_READABLE \
136 PAGE_EXECUTE_READ | \
137 PAGE_EXECUTE_READWRITE | \
138 PAGE_EXECUTE_WRITECOPY)
140 #define PAGE_IS_WRITABLE \
143 PAGE_EXECUTE_READWRITE | \
144 PAGE_EXECUTE_WRITECOPY)
146 #define PAGE_IS_EXECUTABLE \
148 PAGE_EXECUTE_READ | \
149 PAGE_EXECUTE_READWRITE | \
150 PAGE_EXECUTE_WRITECOPY)
152 #define PAGE_IS_WRITECOPY \
154 PAGE_EXECUTE_WRITECOPY)
158 ULONG Entry
[NR_SECTION_PAGE_ENTRIES
];
159 } SECTION_PAGE_TABLE
, *PSECTION_PAGE_TABLE
;
163 PSECTION_PAGE_TABLE PageTables
[NR_SECTION_PAGE_TABLES
];
164 } SECTION_PAGE_DIRECTORY
, *PSECTION_PAGE_DIRECTORY
;
166 typedef struct _MM_SECTION_SEGMENT
168 LONGLONG FileOffset
; /* start offset into the file for image sections */
169 ULONG_PTR VirtualAddress
; /* dtart offset into the address range for image sections */
170 ULONG RawLength
; /* length of the segment which is part of the mapped file */
171 ULONG Length
; /* absolute length of the segment */
173 FAST_MUTEX Lock
; /* lock which protects the page directory */
174 ULONG ReferenceCount
;
175 SECTION_PAGE_DIRECTORY PageDirectory
;
177 ULONG Characteristics
;
179 } MM_SECTION_SEGMENT
, *PMM_SECTION_SEGMENT
;
181 typedef struct _MM_IMAGE_SECTION_OBJECT
184 ULONG_PTR StackReserve
;
185 ULONG_PTR StackCommit
;
186 ULONG_PTR EntryPoint
;
188 ULONG ImageCharacteristics
;
189 USHORT MinorSubsystemVersion
;
190 USHORT MajorSubsystemVersion
;
194 PMM_SECTION_SEGMENT Segments
;
195 } MM_IMAGE_SECTION_OBJECT
, *PMM_IMAGE_SECTION_OBJECT
;
197 typedef struct _ROS_SECTION_OBJECT
201 LARGE_INTEGER MaximumSize
;
202 ULONG SectionPageProtection
;
203 ULONG AllocationAttributes
;
204 PFILE_OBJECT FileObject
;
207 PMM_IMAGE_SECTION_OBJECT ImageSection
;
208 PMM_SECTION_SEGMENT Segment
;
210 } ROS_SECTION_OBJECT
, *PROS_SECTION_OBJECT
;
212 typedef struct _MEMORY_AREA
214 PVOID StartingAddress
;
216 struct _MEMORY_AREA
*Parent
;
217 struct _MEMORY_AREA
*LeftChild
;
218 struct _MEMORY_AREA
*RightChild
;
222 BOOLEAN DeleteInProgress
;
228 ROS_SECTION_OBJECT
* Section
;
230 PMM_SECTION_SEGMENT Segment
;
231 BOOLEAN WriteCopyView
;
232 LIST_ENTRY RegionListHead
;
236 LIST_ENTRY RegionListHead
;
239 } MEMORY_AREA
, *PMEMORY_AREA
;
241 typedef struct _MADDRESS_SPACE
243 PMEMORY_AREA MemoryAreaRoot
;
245 struct _EPROCESS
* Process
;
246 PUSHORT PageTableRefCountTable
;
247 ULONG PageTableRefCountTableSize
;
248 } MADDRESS_SPACE
, *PMADDRESS_SPACE
;
254 ULONG NrReservedPages
;
259 ULONG PagingRequestsInLastMinute
;
260 ULONG PagingRequestsInLastFiveMinutes
;
261 ULONG PagingRequestsInLastFifteenMinutes
;
264 extern MM_STATS MmStats
;
266 typedef struct _MM_PAGEOP
268 /* Type of operation. */
270 /* Number of threads interested in this operation. */
271 ULONG ReferenceCount
;
272 /* Event that will be set when the operation is completed. */
273 KEVENT CompletionEvent
;
274 /* Status of the operation once it is completed. */
276 /* TRUE if the operation was abandoned. */
278 /* The memory area to be affected by the operation. */
281 struct _MM_PAGEOP
* Next
;
282 struct _ETHREAD
* Thread
;
284 * These fields are used to identify the operation if it is against a
285 * virtual memory area.
290 * These fields are used to identify the operation if it is against a
293 PMM_SECTION_SEGMENT Segment
;
295 } MM_PAGEOP
, *PMM_PAGEOP
;
297 typedef struct _MM_MEMORY_CONSUMER
301 NTSTATUS (*Trim
)(ULONG Target
, ULONG Priority
, PULONG NrFreed
);
302 } MM_MEMORY_CONSUMER
, *PMM_MEMORY_CONSUMER
;
304 typedef struct _MM_REGION
309 LIST_ENTRY RegionListEntry
;
310 } MM_REGION
, *PMM_REGION
;
312 extern MM_MEMORY_CONSUMER MiMemoryConsumers
[MC_MAXIMUM
];
315 (*PMM_ALTER_REGION_FUNC
)(
316 PMADDRESS_SPACE AddressSpace
,
326 (*PMM_FREE_PAGE_FUNC
)(
328 PMEMORY_AREA MemoryArea
,
341 IN HANDLE ImageHandle
,
342 IN BOOLEAN PurgeSection
345 /* aspace.c ******************************************************************/
349 MmLockAddressSpace(PMADDRESS_SPACE AddressSpace
);
353 MmUnlockAddressSpace(PMADDRESS_SPACE AddressSpace
);
357 MmInitializeKernelAddressSpace(VOID
);
361 MmGetCurrentAddressSpace(VOID
);
365 MmGetKernelAddressSpace(VOID
);
369 MmInitializeAddressSpace(
370 struct _EPROCESS
* Process
,
371 PMADDRESS_SPACE AddressSpace
);
375 MmDestroyAddressSpace(PMADDRESS_SPACE AddressSpace
);
377 /* marea.c *******************************************************************/
381 MmInitMemoryAreas(VOID
);
386 PMADDRESS_SPACE AddressSpace
,
391 PMEMORY_AREA
*Result
,
392 BOOLEAN FixedAddress
,
393 ULONG AllocationFlags
,
394 PHYSICAL_ADDRESS BoundaryAddressMultiple OPTIONAL
399 MmLocateMemoryAreaByAddress(
400 PMADDRESS_SPACE AddressSpace
,
407 PMADDRESS_SPACE AddressSpace
,
414 PMADDRESS_SPACE AddressSpace
,
415 PMEMORY_AREA MemoryArea
,
416 PMM_FREE_PAGE_FUNC FreePage
,
417 PVOID FreePageContext
422 MmFreeMemoryAreaByPtr(
423 PMADDRESS_SPACE AddressSpace
,
425 PMM_FREE_PAGE_FUNC FreePage
,
426 PVOID FreePageContext
431 MmDumpMemoryAreas(PMADDRESS_SPACE AddressSpace
);
435 MmLocateMemoryAreaByRegion(
436 PMADDRESS_SPACE AddressSpace
,
444 PMADDRESS_SPACE AddressSpace
,
446 ULONG_PTR Granularity
,
452 MmReleaseMemoryAreaIfDecommitted(
453 struct _EPROCESS
*Process
,
454 PMADDRESS_SPACE AddressSpace
,
458 /* npool.c *******************************************************************/
462 MiDebugDumpNonPagedPool(BOOLEAN NewOnly
);
466 MiDebugDumpNonPagedPoolStats(BOOLEAN NewOnly
);
470 MiInitializeNonPagedPool(VOID
);
479 /* pool.c *******************************************************************/
483 ExAllocateNonPagedPoolWithTag(
492 ExAllocatePagedPoolWithTag(
500 ExFreeNonPagedPool(PVOID block
);
504 ExFreePagedPool(IN PVOID Block
);
508 MmInitializePagedPool(VOID
);
512 MiAllocateSpecialPool(
513 IN POOL_TYPE PoolType
,
514 IN SIZE_T NumberOfBytes
,
522 IN POOL_TYPE PoolType
,
523 IN ULONG CurrentMaxQuota
,
524 OUT PULONG NewMaxQuota
527 /* mdl.c *********************************************************************/
536 /* mminit.c ******************************************************************/
540 MiShutdownMemoryManager(VOID
);
545 ULONG_PTR FirstKernelPhysAddress
,
546 ULONG_PTR LastKernelPhysAddress
,
547 ULONG_PTR LastKernelAddress
,
548 PADDRESS_RANGE BIOSMemoryMap
,
549 ULONG AddressRangeCount
,
563 MiFreeInitMemory(VOID
);
567 MmInitializeMdlImplementation(VOID
);
569 /* pagefile.c ****************************************************************/
573 MmAllocSwapPage(VOID
);
577 MmDereserveSwapPages(ULONG Nr
);
581 MmFreeSwapPage(SWAPENTRY Entry
);
585 MmInitPagingFile(VOID
);
596 MmReserveSwapPages(ULONG Nr
);
609 ULONG BugCodeParameter1
,
610 ULONG BugCodeParameter2
,
611 ULONG BugCodeParameter3
,
612 ULONG BugCodeParameter4
,
613 struct _KTRAP_FRAME
* TrapFrame
618 MmIsAvailableSwapPage(VOID
);
622 MmShowOutOfSpaceMessagePagingFile(VOID
);
624 /* process.c ****************************************************************/
628 MmCreateProcessAddressSpace(
629 IN PEPROCESS Process
,
630 IN PROS_SECTION_OBJECT Section OPTIONAL
,
631 IN POBJECT_NAME_INFORMATION
*AuditName OPTIONAL
636 MmCreatePeb(struct _EPROCESS
*Process
);
641 struct _EPROCESS
*Process
,
643 PINITIAL_TEB InitialTeb
649 struct _EPROCESS
*Process
,
655 MmCleanProcessAddressSpace(IN PEPROCESS Process
);
659 MmDeleteProcessAddressSpace(IN PEPROCESS Process
);
663 MmGetSessionLocaleId(VOID
);
667 MmSetMemoryPriorityProcess(
668 IN PEPROCESS Process
,
669 IN UCHAR MemoryPriority
672 /* i386/pfault.c *************************************************************/
684 /* mm.c **********************************************************************/
689 KPROCESSOR_MODE Mode
,
697 KPROCESSOR_MODE Mode
,
702 /* anonmem.c *****************************************************************/
706 MmNotPresentFaultVirtualMemory(
707 PMADDRESS_SPACE AddressSpace
,
708 MEMORY_AREA
* MemoryArea
,
715 MmPageOutVirtualMemory(
716 PMADDRESS_SPACE AddressSpace
,
717 PMEMORY_AREA MemoryArea
,
719 struct _MM_PAGEOP
* PageOp
725 PMEMORY_AREA MemoryArea
,
727 PMEMORY_BASIC_INFORMATION Info
,
734 struct _EPROCESS
* Process
,
735 PMEMORY_AREA MemoryArea
741 PMADDRESS_SPACE AddressSpace
,
742 PMEMORY_AREA MemoryArea
,
751 MmWritePageVirtualMemory(
752 PMADDRESS_SPACE AddressSpace
,
758 /* kmap.c ********************************************************************/
762 ExAllocatePage(VOID
);
766 ExUnmapPage(PVOID Addr
);
770 ExAllocatePageWithPhysPage(PFN_TYPE Page
);
781 MiZeroPage(PFN_TYPE Page
);
783 /* memsafe.s *****************************************************************/
787 MmSafeReadPtr(PVOID Source
);
789 /* pageop.c ******************************************************************/
793 MmReleasePageOp(PMM_PAGEOP PageOp
);
801 PMM_SECTION_SEGMENT Segment
,
813 PMM_SECTION_SEGMENT Segment
,
819 MmInitializePageOp(VOID
);
821 /* process.c *****************************************************************/
825 MmCreateKernelStack(BOOLEAN GuiStack
);
829 MmDeleteKernelStack(PVOID Stack
,
832 /* balace.c ******************************************************************/
836 MmInitializeMemoryConsumer(
838 NTSTATUS (*Trim
)(ULONG Target
, ULONG Priority
, PULONG NrFreed
)
843 MmInitializeBalancer(
844 ULONG NrAvailablePages
,
850 MmReleasePageMemoryConsumer(
857 MmRequestPageMemoryConsumer(
860 PPFN_TYPE AllocatedPage
865 MiInitBalancerThread(VOID
);
869 MmRebalanceMemoryConsumers(VOID
);
871 /* rmap.c **************************************************************/
875 MmSetRmapListHeadPage(
877 struct _MM_RMAP_ENTRY
* ListHead
880 struct _MM_RMAP_ENTRY
*
882 MmGetRmapListHeadPage(PFN_TYPE Page
);
888 struct _EPROCESS
*Process
,
897 VOID (*DeleteMapping
)(PVOID Context
, struct _EPROCESS
*Process
, PVOID Address
)
904 struct _EPROCESS
*Process
,
910 MmInitializeRmapList(VOID
);
914 MmSetCleanAllRmaps(PFN_TYPE Page
);
918 MmSetDirtyAllRmaps(PFN_TYPE Page
);
922 MmIsDirtyPageRmap(PFN_TYPE Page
);
926 MmWritePagePhysicalAddress(PFN_TYPE Page
);
930 MmPageOutPhysicalAddress(PFN_TYPE Page
);
932 /* freelist.c **********************************************************/
936 MmGetLRUNextUserPage(PFN_TYPE PreviousPage
);
940 MmGetLRUFirstUserPage(VOID
);
944 MmSetLRULastPage(PFN_TYPE Page
);
948 MmLockPage(PFN_TYPE Page
);
952 MmLockPageUnsafe(PFN_TYPE Page
);
956 MmUnlockPage(PFN_TYPE Page
);
960 MmGetLockCountPage(PFN_TYPE Page
);
964 MmInitializePageList(
965 ULONG_PTR FirstPhysKernelAddress
,
966 ULONG_PTR LastPhysKernelAddress
,
967 ULONG MemorySizeInPages
,
968 ULONG_PTR LastKernelBase
,
969 PADDRESS_RANGE BIOSMemoryMap
,
970 ULONG AddressRangeCount
975 MmGetContinuousPages(
977 PHYSICAL_ADDRESS LowestAcceptableAddress
,
978 PHYSICAL_ADDRESS HighestAcceptableAddress
,
979 PHYSICAL_ADDRESS BoundaryAddressMultiple
984 MmZeroPageThreadMain(
988 /* i386/page.c *********************************************************/
992 MmCreateHyperspaceMapping(PFN_TYPE Page
);
996 MmChangeHyperspaceMapping(
1003 MmDeleteHyperspaceMapping(PVOID Address
);
1007 MmCreateVirtualMappingForKernel(
1016 MmCommitPagedPoolAddress(
1023 MmCreateVirtualMapping(
1024 struct _EPROCESS
* Process
,
1033 MmCreateVirtualMappingUnsafe(
1034 struct _EPROCESS
* Process
,
1044 struct _EPROCESS
* Process
,
1050 struct _EPROCESS
* Process
,
1058 struct _EPROCESS
* Process
,
1064 MmInitGlobalKernelPageDirectory(VOID
);
1068 MmDisableVirtualMapping(
1069 struct _EPROCESS
*Process
,
1077 MmEnableVirtualMapping(
1078 struct _EPROCESS
*Process
,
1084 MmRawDeleteVirtualMapping(PVOID Address
);
1088 MmDeletePageFileMapping(
1089 struct _EPROCESS
*Process
,
1091 SWAPENTRY
* SwapEntry
1096 MmCreatePageFileMapping(
1097 struct _EPROCESS
*Process
,
1105 struct _EPROCESS
*Process
,
1111 MmTransferOwnershipPage(
1119 struct _EPROCESS
*Process
,
1127 SWAPENTRY SavedSwapEntry
1132 MmAllocPagesSpecifyRange(
1134 PHYSICAL_ADDRESS LowestAddress
,
1135 PHYSICAL_ADDRESS HighestAddress
,
1136 ULONG NumberOfPages
,
1142 MmDereferencePage(PFN_TYPE Page
);
1146 MmReferencePage(PFN_TYPE Page
);
1150 MmReferencePageUnsafe(PFN_TYPE Page
);
1154 MmIsAccessedAndResetAccessPage(
1155 struct _EPROCESS
*Process
,
1161 MmGetReferenceCountPage(PFN_TYPE Page
);
1165 MmIsUsablePage(PFN_TYPE Page
);
1175 MmGetFlagsPage(PFN_TYPE Page
);
1179 MmSetSavedSwapEntryPage(
1181 SWAPENTRY SavedSwapEntry
);
1185 MmGetSavedSwapEntryPage(PFN_TYPE Page
);
1190 struct _EPROCESS
*Process
,
1196 MmCreatePageTable(PVOID PAddress
);
1201 struct _EPROCESS
*Process
,
1208 struct _EPROCESS
*Process
,
1215 struct _EPROCESS
*Src
,
1216 struct _EPROCESS
*Dest
,
1217 PPHYSICAL_ADDRESS DirectoryTableBase
1222 MmReleaseMmInfo(struct _EPROCESS
*Process
);
1226 Mmi386ReleaseMmInfo(struct _EPROCESS
*Process
);
1230 MmDeleteVirtualMapping(
1231 struct _EPROCESS
*Process
,
1241 struct _EPROCESS
*Process
,
1247 MmMarkPageMapped(PFN_TYPE Page
);
1251 MmMarkPageUnmapped(PFN_TYPE Page
);
1256 struct _EPROCESS
*Process
,
1263 MiInitPageDirectoryMap(VOID
);
1267 MiGetUserPageDirectoryCount(VOID
);
1269 /* wset.c ********************************************************************/
1278 /* region.c ************************************************************/
1283 PMADDRESS_SPACE AddressSpace
,
1285 PLIST_ENTRY RegionListHead
,
1290 PMM_ALTER_REGION_FUNC AlterFunc
1296 PLIST_ENTRY RegionListHead
,
1306 PLIST_ENTRY RegionListHead
,
1308 PVOID
* RegionBaseAddress
1311 /* section.c *****************************************************************/
1315 MmGetFileObjectForSection(
1316 IN PROS_SECTION_OBJECT Section
1320 MmGetFileNameForAddress(
1322 OUT PUNICODE_STRING ModuleName
1327 MmGetFileNameForSection(
1328 IN PROS_SECTION_OBJECT Section
,
1329 OUT PUNICODE_STRING ModuleName
1342 PMEMORY_AREA MemoryArea
,
1344 PMEMORY_BASIC_INFORMATION Info
,
1350 MmProtectSectionView(
1351 PMADDRESS_SPACE AddressSpace
,
1352 PMEMORY_AREA MemoryArea
,
1361 MmWritePageSectionView(
1362 PMADDRESS_SPACE AddressSpace
,
1370 MmInitSectionImplementation(VOID
);
1374 MmNotPresentFaultSectionView(
1375 PMADDRESS_SPACE AddressSpace
,
1376 MEMORY_AREA
* MemoryArea
,
1383 MmPageOutSectionView(
1384 PMADDRESS_SPACE AddressSpace
,
1385 PMEMORY_AREA MemoryArea
,
1387 struct _MM_PAGEOP
*PageOp
1392 MmCreatePhysicalMemorySection(VOID
);
1396 MmAccessFaultSectionView(
1397 PMADDRESS_SPACE AddressSpace
,
1398 MEMORY_AREA
* MemoryArea
,
1405 MmFreeSectionSegments(PFILE_OBJECT FileObject
);
1407 /* mpw.c *********************************************************************/
1411 MmInitMpwThread(VOID
);
1413 /* pager.c *******************************************************************/
1417 MiIsPagerThread(VOID
);
1421 MiStartPagerThread(VOID
);
1425 MiStopPagerThread(VOID
);
1429 MiQueryVirtualMemory(
1430 IN HANDLE ProcessHandle
,
1432 IN MEMORY_INFORMATION_CLASS VirtualMemoryInformationClass
,
1433 OUT PVOID VirtualMemoryInformation
,
1435 OUT PULONG ResultLength