Process Hacker
peprp.c File Reference
#include <peview.h>
#include <cpysave.h>

Go to the source code of this file.

Macros

#define PVM_CHECKSUM_DONE   (WM_APP + 1)
 
#define ADD_VALUE(Name, Value)
 
#define ADD_VALUES(Config)
 

Functions

INT_PTR CALLBACK PvpPeGeneralDlgProc (__in HWND hwndDlg, __in UINT uMsg, __in WPARAM wParam, __in LPARAM lParam)
 
INT_PTR CALLBACK PvpPeImportsDlgProc (__in HWND hwndDlg, __in UINT uMsg, __in WPARAM wParam, __in LPARAM lParam)
 
INT_PTR CALLBACK PvpPeExportsDlgProc (__in HWND hwndDlg, __in UINT uMsg, __in WPARAM wParam, __in LPARAM lParam)
 
INT_PTR CALLBACK PvpPeLoadConfigDlgProc (__in HWND hwndDlg, __in UINT uMsg, __in WPARAM wParam, __in LPARAM lParam)
 
INT_PTR CALLBACK PvpPeClrDlgProc (__in HWND hwndDlg, __in UINT uMsg, __in WPARAM wParam, __in LPARAM lParam)
 
VOID PvPeProperties (VOID)
 
VOID PvpProcessImports (__in HWND ListViewHandle, __in PPH_MAPPED_IMAGE_IMPORTS Imports, __in BOOLEAN DelayImports)
 

Variables

PH_MAPPED_IMAGE PvMappedImage
 
PIMAGE_COR20_HEADER PvImageCor20Header
 

Macro Definition Documentation

#define ADD_VALUE (   Name,
  Value 
)
Value:
do { \
INT lvItemIndex; \
\
lvItemIndex = PhAddListViewItem(lvHandle, MAXINT, Name, NULL); \
PhSetListViewSubItem(lvHandle, lvItemIndex, 1, Value); \
} while (0)
#define ADD_VALUES (   Config)
Value:
do { \
{ \
LARGE_INTEGER time; \
SYSTEMTIME systemTime; \
RtlSecondsSince1970ToTime((Config)->TimeDateStamp, &time); \
PhLargeIntegerToLocalSystemTime(&systemTime, &time); \
\
string = PhFormatDateTime(&systemTime); \
ADD_VALUE(L"Time stamp", string->Buffer); \
PhDereferenceObject(string); \
} \
\
ADD_VALUE(L"Version", PhaFormatString(L"%u.%u", (Config)->MajorVersion, (Config)->MinorVersion)->Buffer); \
ADD_VALUE(L"Global flags to clear", PhaFormatString(L"0x%x", (Config)->GlobalFlagsClear)->Buffer); \
ADD_VALUE(L"Global flags to set", PhaFormatString(L"0x%x", (Config)->GlobalFlagsSet)->Buffer); \
ADD_VALUE(L"Critical section default timeout", PhaFormatUInt64((Config)->CriticalSectionDefaultTimeout, TRUE)->Buffer); \
ADD_VALUE(L"De-commit free block threshold", PhaFormatUInt64((Config)->DeCommitFreeBlockThreshold, TRUE)->Buffer); \
ADD_VALUE(L"De-commit total free threshold", PhaFormatUInt64((Config)->DeCommitTotalFreeThreshold, TRUE)->Buffer); \
ADD_VALUE(L"LOCK prefix table", PhaFormatString(L"0x%Ix", (Config)->LockPrefixTable)->Buffer); \
ADD_VALUE(L"Maximum allocation size", PhaFormatString(L"0x%Ix", (Config)->MaximumAllocationSize)->Buffer); \
ADD_VALUE(L"Virtual memory threshold", PhaFormatString(L"0x%Ix", (Config)->VirtualMemoryThreshold)->Buffer); \
ADD_VALUE(L"Process affinity mask", PhaFormatString(L"0x%Ix", (Config)->ProcessAffinityMask)->Buffer); \
ADD_VALUE(L"Process heap flags", PhaFormatString(L"0x%Ix", (Config)->ProcessHeapFlags)->Buffer); \
ADD_VALUE(L"CSD version", PhaFormatString(L"%u", (Config)->CSDVersion)->Buffer); \
ADD_VALUE(L"Edit list", PhaFormatString(L"0x%Ix", (Config)->EditList)->Buffer); \
ADD_VALUE(L"Security cookie", PhaFormatString(L"0x%Ix", (Config)->SecurityCookie)->Buffer); \
ADD_VALUE(L"SEH handler table", PhaFormatString(L"0x%Ix", (Config)->SEHandlerTable)->Buffer); \
ADD_VALUE(L"SEH handler count", PhaFormatUInt64((Config)->SEHandlerCount, TRUE)->Buffer); \
} while (0)
#define PVM_CHECKSUM_DONE   (WM_APP + 1)

Definition at line 26 of file peprp.c.

Function Documentation

VOID PvPeProperties ( VOID  )

Definition at line 66 of file peprp.c.

INT_PTR CALLBACK PvpPeClrDlgProc ( __in HWND  hwndDlg,
__in UINT  uMsg,
__in WPARAM  wParam,
__in LPARAM  lParam 
)

Definition at line 684 of file peprp.c.

INT_PTR CALLBACK PvpPeExportsDlgProc ( __in HWND  hwndDlg,
__in UINT  uMsg,
__in WPARAM  wParam,
__in LPARAM  lParam 
)

Definition at line 506 of file peprp.c.

INT_PTR CALLBACK PvpPeGeneralDlgProc ( __in HWND  hwndDlg,
__in UINT  uMsg,
__in WPARAM  wParam,
__in LPARAM  lParam 
)

Definition at line 186 of file peprp.c.

INT_PTR CALLBACK PvpPeImportsDlgProc ( __in HWND  hwndDlg,
__in UINT  uMsg,
__in WPARAM  wParam,
__in LPARAM  lParam 
)

Definition at line 459 of file peprp.c.

INT_PTR CALLBACK PvpPeLoadConfigDlgProc ( __in HWND  hwndDlg,
__in UINT  uMsg,
__in WPARAM  wParam,
__in LPARAM  lParam 
)

Definition at line 591 of file peprp.c.

VOID PvpProcessImports ( __in HWND  ListViewHandle,
__in PPH_MAPPED_IMAGE_IMPORTS  Imports,
__in BOOLEAN  DelayImports 
)

Definition at line 407 of file peprp.c.

Variable Documentation

PIMAGE_COR20_HEADER PvImageCor20Header

Definition at line 64 of file peprp.c.

PH_MAPPED_IMAGE PvMappedImage

Definition at line 63 of file peprp.c.