62 ULONG_PTR ReservedUlong : 32;
79 ULONG_PTR ReservedUlong : 32;
102 #define MMPFNLIST_ZERO 0
103 #define MMPFNLIST_FREE 1
104 #define MMPFNLIST_STANDBY 2
105 #define MMPFNLIST_MODIFIED 3
106 #define MMPFNLIST_MODIFIEDNOWRITE 4
107 #define MMPFNLIST_BAD 5
108 #define MMPFNLIST_ACTIVE 6
109 #define MMPFNLIST_TRANSITION 7
111 #define MMPFNUSE_PROCESSPRIVATE 0
112 #define MMPFNUSE_FILE 1
113 #define MMPFNUSE_PAGEFILEMAPPED 2
114 #define MMPFNUSE_PAGETABLE 3
115 #define MMPFNUSE_PAGEDPOOL 4
116 #define MMPFNUSE_NONPAGEDPOOL 5
117 #define MMPFNUSE_SYSTEMPTE 6
118 #define MMPFNUSE_SESSIONPRIVATE 7
119 #define MMPFNUSE_METAFILE 8
120 #define MMPFNUSE_AWEPAGE 9
121 #define MMPFNUSE_DRIVERLOCKPAGE 10
231 #define SEC_BASED 0x200000
232 #define SEC_NO_CHANGE 0x400000
233 #define SEC_GLOBAL 0x20000000
235 #define MEM_EXECUTE_OPTION_DISABLE 0x1
236 #define MEM_EXECUTE_OPTION_ENABLE 0x2
237 #define MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION 0x4
238 #define MEM_EXECUTE_OPTION_PERMANENT 0x8
239 #define MEM_EXECUTE_OPTION_EXECUTE_DISPATCH_ENABLE 0x10
240 #define MEM_EXECUTE_OPTION_IMAGE_DISPATCH_ENABLE 0x20
241 #define MEM_EXECUTE_OPTION_VALID_FLAGS 0x3f
249 _In_ HANDLE ProcessHandle,
250 _Inout_ _At_(*BaseAddress, _Readable_bytes_(*RegionSize) _Writable_bytes_(*RegionSize) _Post_readable_byte_size_(*RegionSize)) PVOID *BaseAddress,
251 _In_ ULONG_PTR ZeroBits,
252 _Inout_ PSIZE_T RegionSize,
253 _In_ ULONG AllocationType,
261 _In_ HANDLE ProcessHandle,
262 _Inout_ PVOID *BaseAddress,
263 _Inout_ PSIZE_T RegionSize,
271 _In_ HANDLE ProcessHandle,
272 _In_opt_ PVOID BaseAddress,
273 _Out_writes_bytes_(BufferSize) PVOID Buffer,
274 _In_ SIZE_T BufferSize,
275 _Out_opt_ PSIZE_T NumberOfBytesRead
282 _In_ HANDLE ProcessHandle,
283 _In_opt_ PVOID BaseAddress,
284 _In_reads_bytes_(BufferSize) PVOID Buffer,
285 _In_ SIZE_T BufferSize,
286 _Out_opt_ PSIZE_T NumberOfBytesWritten
293 _In_ HANDLE ProcessHandle,
294 _Inout_ PVOID *BaseAddress,
295 _Inout_ PSIZE_T RegionSize,
296 _In_ ULONG NewProtect,
297 _Out_ PULONG OldProtect
304 _In_ HANDLE ProcessHandle,
305 _In_ PVOID BaseAddress,
307 _Out_writes_bytes_(MemoryInformationLength) PVOID MemoryInformation,
308 _In_ SIZE_T MemoryInformationLength,
309 _Out_opt_ PSIZE_T ReturnLength
329 #if (PHNT_VERSION >= PHNT_THRESHOLD)
335 _In_ HANDLE ProcessHandle,
337 _In_ ULONG_PTR NumberOfEntries,
338 _In_reads_ (NumberOfEntries) PMEMORY_RANGE_ENTRY VirtualAddresses,
339 _In_reads_bytes_ (VmInformationLength) PVOID VmInformation,
340 _In_ ULONG VmInformationLength
349 _In_ HANDLE ProcessHandle,
350 _Inout_ PVOID *BaseAddress,
351 _Inout_ PSIZE_T RegionSize,
359 _In_ HANDLE ProcessHandle,
360 _Inout_ PVOID *BaseAddress,
361 _Inout_ PSIZE_T RegionSize,
371 _Out_ PHANDLE SectionHandle,
372 _In_ ACCESS_MASK DesiredAccess,
374 _In_opt_ PLARGE_INTEGER MaximumSize,
375 _In_ ULONG SectionPageProtection,
376 _In_ ULONG AllocationAttributes,
377 _In_opt_ HANDLE FileHandle
384 _Out_ PHANDLE SectionHandle,
385 _In_ ACCESS_MASK DesiredAccess,
393 _In_ HANDLE SectionHandle,
394 _In_ HANDLE ProcessHandle,
395 _Inout_ _At_(*BaseAddress, _Readable_bytes_(*ViewSize) _Writable_bytes_(*ViewSize) _Post_readable_byte_size_(*ViewSize)) PVOID *BaseAddress,
396 _In_ ULONG_PTR ZeroBits,
397 _In_ SIZE_T CommitSize,
398 _Inout_opt_ PLARGE_INTEGER SectionOffset,
399 _Inout_ PSIZE_T ViewSize,
401 _In_ ULONG AllocationType,
402 _In_ ULONG Win32Protect
409 _In_ HANDLE ProcessHandle,
410 _In_opt_ PVOID BaseAddress
413 #if (PHNT_VERSION >= PHNT_WIN8)
418 _In_ HANDLE ProcessHandle,
419 _In_opt_ PVOID BaseAddress,
428 _In_ HANDLE SectionHandle,
429 _Inout_ PLARGE_INTEGER NewSectionSize
436 _In_ HANDLE SectionHandle,
438 _Out_writes_bytes_(SectionInformationLength) PVOID SectionInformation,
439 _In_ SIZE_T SectionInformationLength,
440 _Out_opt_ PSIZE_T ReturnLength
447 _In_ PVOID File1MappedAsAnImage,
448 _In_ PVOID File2MappedAsFile
462 #if (PHNT_VERSION >= PHNT_THRESHOLD)
468 _Out_ PHANDLE PartitionHandle,
469 _In_ ACCESS_MASK DesiredAccess,
471 _In_ ULONG PreferredNode
478 _Out_ PHANDLE PartitionHandle,
479 _In_ ACCESS_MASK DesiredAccess,
488 _In_ PVOID PartitionInformation,
489 _In_ ULONG PartitionInformationLength
500 _In_ PVOID VirtualAddress,
501 _In_ ULONG_PTR NumberOfPages,
502 _In_reads_opt_(NumberOfPages) PULONG_PTR UserPfnArray
509 _In_reads_(NumberOfPages) PVOID *VirtualAddresses,
510 _In_ ULONG_PTR NumberOfPages,
511 _In_reads_opt_(NumberOfPages) PULONG_PTR UserPfnArray
518 _In_ HANDLE ProcessHandle,
519 _Inout_ PULONG_PTR NumberOfPages,
520 _Out_writes_(*NumberOfPages) PULONG_PTR UserPfnArray
527 _In_ HANDLE ProcessHandle,
528 _Inout_ PULONG_PTR NumberOfPages,
529 _In_reads_(*NumberOfPages) PULONG_PTR UserPfnArray
534 #if (PHNT_VERSION >= PHNT_VISTA)
539 _Out_ PHANDLE SessionHandle,
540 _In_ ACCESS_MASK DesiredAccess,
551 _In_ HANDLE ProcessHandle,
553 _In_ PVOID BaseAddress,
554 _In_ SIZE_T RegionSize,
555 _Out_writes_(*EntriesInUserAddressArray) PVOID *UserAddressArray,
556 _Inout_ PULONG_PTR EntriesInUserAddressArray,
557 _Out_ PULONG Granularity
564 _In_ HANDLE ProcessHandle,
565 _In_ PVOID BaseAddress,
566 _In_ SIZE_T RegionSize
574 _In_ PLARGE_INTEGER MinimumSize,
575 _In_ PLARGE_INTEGER MaximumSize,
583 _In_ HANDLE ProcessHandle,
584 _In_opt_ PVOID BaseAddress,