Process Hacker
memprv.c File Reference
#include <phapp.h>
#include <heapstruct.h>

Go to the source code of this file.

Macros

#define MAX_HEAPS   1000
 
#define WS_REQUEST_COUNT   (PAGE_SIZE / sizeof(MEMORY_WORKING_SET_EX_INFORMATION))
 

Functions

VOID PhpMemoryItemDeleteProcedure (_In_ PVOID Object, _In_ ULONG Flags)
 
BOOLEAN PhMemoryProviderInitialization (VOID)
 
VOID PhGetMemoryProtectionString (_In_ ULONG Protection, _Out_writes_(17) PWSTR String)
 
PWSTR PhGetMemoryStateString (_In_ ULONG State)
 
PWSTR PhGetMemoryTypeString (_In_ ULONG Type)
 
PPH_MEMORY_ITEM PhCreateMemoryItem (VOID)
 
VOID PhDeleteMemoryItemList (_In_ PPH_MEMORY_ITEM_LIST List)
 
PPH_MEMORY_ITEM PhLookupMemoryItemList (_In_ PPH_MEMORY_ITEM_LIST List, _In_ PVOID Address)
 
PPH_MEMORY_ITEM PhpSetMemoryRegionType (_In_ PPH_MEMORY_ITEM_LIST List, _In_ PVOID Address, _In_ BOOLEAN GoToAllocationBase, _In_ PH_MEMORY_REGION_TYPE RegionType)
 
NTSTATUS PhpUpdateMemoryRegionTypes (_In_ PPH_MEMORY_ITEM_LIST List, _In_ HANDLE ProcessHandle)
 
NTSTATUS PhpUpdateMemoryWsCounters (_In_ PPH_MEMORY_ITEM_LIST List, _In_ HANDLE ProcessHandle)
 
NTSTATUS PhpUpdateMemoryWsCountersOld (_In_ PPH_MEMORY_ITEM_LIST List, _In_ HANDLE ProcessHandle)
 
NTSTATUS PhQueryMemoryItemList (_In_ HANDLE ProcessId, _In_ ULONG Flags, _Out_ PPH_MEMORY_ITEM_LIST List)
 

Variables

PPH_OBJECT_TYPE PhMemoryItemType
 

Macro Definition Documentation

#define MAX_HEAPS   1000

Definition at line 26 of file memprv.c.

#define WS_REQUEST_COUNT   (PAGE_SIZE / sizeof(MEMORY_WORKING_SET_EX_INFORMATION))

Definition at line 27 of file memprv.c.

Function Documentation

PPH_MEMORY_ITEM PhCreateMemoryItem ( VOID  )

Definition at line 132 of file memprv.c.

VOID PhDeleteMemoryItemList ( _In_ PPH_MEMORY_ITEM_LIST  List)

Definition at line 173 of file memprv.c.

VOID PhGetMemoryProtectionString ( _In_ ULONG  Protection,
_Out_writes_(17) PWSTR  String 
)

Definition at line 45 of file memprv.c.

PWSTR PhGetMemoryStateString ( _In_ ULONG  State)

Definition at line 104 of file memprv.c.

PWSTR PhGetMemoryTypeString ( _In_ ULONG  Type)

Definition at line 118 of file memprv.c.

PPH_MEMORY_ITEM PhLookupMemoryItemList ( _In_ PPH_MEMORY_ITEM_LIST  List,
_In_ PVOID  Address 
)

Definition at line 191 of file memprv.c.

BOOLEAN PhMemoryProviderInitialization ( VOID  )

Definition at line 36 of file memprv.c.

VOID PhpMemoryItemDeleteProcedure ( _In_ PVOID  Object,
_In_ ULONG  Flags 
)

Definition at line 144 of file memprv.c.

PPH_MEMORY_ITEM PhpSetMemoryRegionType ( _In_ PPH_MEMORY_ITEM_LIST  List,
_In_ PVOID  Address,
_In_ BOOLEAN  GoToAllocationBase,
_In_ PH_MEMORY_REGION_TYPE  RegionType 
)

Definition at line 243 of file memprv.c.

NTSTATUS PhpUpdateMemoryRegionTypes ( _In_ PPH_MEMORY_ITEM_LIST  List,
_In_ HANDLE  ProcessHandle 
)

Definition at line 268 of file memprv.c.

NTSTATUS PhpUpdateMemoryWsCounters ( _In_ PPH_MEMORY_ITEM_LIST  List,
_In_ HANDLE  ProcessHandle 
)

Definition at line 520 of file memprv.c.

NTSTATUS PhpUpdateMemoryWsCountersOld ( _In_ PPH_MEMORY_ITEM_LIST  List,
_In_ HANDLE  ProcessHandle 
)

Definition at line 595 of file memprv.c.

NTSTATUS PhQueryMemoryItemList ( _In_ HANDLE  ProcessId,
_In_ ULONG  Flags,
_Out_ PPH_MEMORY_ITEM_LIST  List 
)

Definition at line 637 of file memprv.c.

Variable Documentation

PPH_OBJECT_TYPE PhMemoryItemType

Definition at line 34 of file memprv.c.