Process Hacker
memsrch.c File Reference
#include <phapp.h>
#include <memsrch.h>
#include <windowsx.h>

Go to the source code of this file.

Macros

#define WM_PH_MEMORY_STATUS_UPDATE   (WM_APP + 301)
 
#define PH_SEARCH_UPDATE   1
 
#define PH_SEARCH_COMPLETED   2
 

Typedefs

typedef struct
_MEMORY_STRING_CONTEXT 
MEMORY_STRING_CONTEXT
 
typedef struct
_MEMORY_STRING_CONTEXT * 
PMEMORY_STRING_CONTEXT
 

Functions

INT_PTR CALLBACK PhpMemoryStringDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhpMemoryStringProgressDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
PVOID PhAllocateForMemorySearch (_In_ SIZE_T Size)
 
VOID PhFreeForMemorySearch (_In_ _Post_invalid_ PVOID Memory)
 
PVOID PhCreateMemoryResult (_In_ PVOID Address, _In_ SIZE_T Length)
 
VOID PhReferenceMemoryResult (_In_ PPH_MEMORY_RESULT Result)
 
VOID PhDereferenceMemoryResult (_In_ PPH_MEMORY_RESULT Result)
 
VOID PhDereferenceMemoryResults (_In_reads_(NumberOfResults) PPH_MEMORY_RESULT *Results, _In_ ULONG NumberOfResults)
 
VOID PhSearchMemoryString (_In_ HANDLE ProcessHandle, _In_ PPH_MEMORY_STRING_OPTIONS Options)
 
VOID PhShowMemoryStringDialog (_In_ HWND ParentWindowHandle, _In_ PPH_PROCESS_ITEM ProcessItem)
 
NTSTATUS PhpMemoryStringThreadStart (_In_ PVOID Parameter)
 

Variables

PVOID PhMemorySearchHeap = NULL
 
LONG PhMemorySearchHeapRefCount = 0
 
PH_QUEUED_LOCK PhMemorySearchHeapLock = PH_QUEUED_LOCK_INIT
 

Macro Definition Documentation

#define PH_SEARCH_COMPLETED   2

Definition at line 30 of file memsrch.c.

#define PH_SEARCH_UPDATE   1

Definition at line 29 of file memsrch.c.

#define WM_PH_MEMORY_STATUS_UPDATE   (WM_APP + 301)

Definition at line 27 of file memsrch.c.

Typedef Documentation

typedef struct _MEMORY_STRING_CONTEXT MEMORY_STRING_CONTEXT
typedef struct _MEMORY_STRING_CONTEXT * PMEMORY_STRING_CONTEXT

Function Documentation

PVOID PhAllocateForMemorySearch ( _In_ SIZE_T  Size)

Definition at line 66 of file memsrch.c.

PVOID PhCreateMemoryResult ( _In_ PVOID  Address,
_In_ SIZE_T  Length 
)

Definition at line 122 of file memsrch.c.

VOID PhDereferenceMemoryResult ( _In_ PPH_MEMORY_RESULT  Result)

Definition at line 150 of file memsrch.c.

VOID PhDereferenceMemoryResults ( _In_reads_(NumberOfResults) PPH_MEMORY_RESULT Results,
_In_ ULONG  NumberOfResults 
)

Definition at line 163 of file memsrch.c.

VOID PhFreeForMemorySearch ( _In_ _Post_invalid_ PVOID  Memory)

Definition at line 105 of file memsrch.c.

INT_PTR CALLBACK PhpMemoryStringDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 527 of file memsrch.c.

INT_PTR CALLBACK PhpMemoryStringProgressDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 628 of file memsrch.c.

NTSTATUS PhpMemoryStringThreadStart ( _In_ PVOID  Parameter)

Definition at line 598 of file memsrch.c.

VOID PhReferenceMemoryResult ( _In_ PPH_MEMORY_RESULT  Result)

Definition at line 143 of file memsrch.c.

VOID PhSearchMemoryString ( _In_ HANDLE  ProcessHandle,
_In_ PPH_MEMORY_STRING_OPTIONS  Options 
)

Definition at line 174 of file memsrch.c.

VOID PhShowMemoryStringDialog ( _In_ HWND  ParentWindowHandle,
_In_ PPH_PROCESS_ITEM  ProcessItem 
)

Definition at line 466 of file memsrch.c.

Variable Documentation

PVOID PhMemorySearchHeap = NULL

Definition at line 62 of file memsrch.c.

PH_QUEUED_LOCK PhMemorySearchHeapLock = PH_QUEUED_LOCK_INIT

Definition at line 64 of file memsrch.c.

LONG PhMemorySearchHeapRefCount = 0

Definition at line 63 of file memsrch.c.