Process Hacker
modlist.c File Reference
#include <phapp.h>
#include <settings.h>
#include <extmgri.h>
#include <phplug.h>
#include <emenu.h>
#include <verify.h>

Go to the source code of this file.

Macros

#define SORT_FUNCTION(Column)   PhpModuleTreeNewCompare##Column
 
#define BEGIN_SORT_FUNCTION(Column)
 
#define END_SORT_FUNCTION
 

Functions

BOOLEAN PhpModuleNodeHashtableCompareFunction (_In_ PVOID Entry1, _In_ PVOID Entry2)
 
ULONG PhpModuleNodeHashtableHashFunction (_In_ PVOID Entry)
 
VOID PhpDestroyModuleNode (_In_ PPH_MODULE_NODE ModuleNode)
 
VOID PhpRemoveModuleNode (_In_ PPH_MODULE_NODE ModuleNode, _In_ PPH_MODULE_LIST_CONTEXT Context)
 
LONG PhpModuleTreeNewPostSortFunction (_In_ LONG Result, _In_ PVOID Node1, _In_ PVOID Node2, _In_ PH_SORT_ORDER SortOrder)
 
BOOLEAN NTAPI PhpModuleTreeNewCallback (_In_ HWND hwnd, _In_ PH_TREENEW_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2, _In_opt_ PVOID Context)
 
VOID PhInitializeModuleList (_In_ HWND ParentWindowHandle, _In_ HWND TreeNewHandle, _Out_ PPH_MODULE_LIST_CONTEXT Context)
 
VOID PhDeleteModuleList (_In_ PPH_MODULE_LIST_CONTEXT Context)
 
VOID PhLoadSettingsModuleList (_Inout_ PPH_MODULE_LIST_CONTEXT Context)
 
VOID PhSaveSettingsModuleList (_Inout_ PPH_MODULE_LIST_CONTEXT Context)
 
PPH_MODULE_NODE PhAddModuleNode (_Inout_ PPH_MODULE_LIST_CONTEXT Context, _In_ PPH_MODULE_ITEM ModuleItem, _In_ ULONG RunId)
 
PPH_MODULE_NODE PhFindModuleNode (_In_ PPH_MODULE_LIST_CONTEXT Context, _In_ PPH_MODULE_ITEM ModuleItem)
 
VOID PhRemoveModuleNode (_In_ PPH_MODULE_LIST_CONTEXT Context, _In_ PPH_MODULE_NODE ModuleNode)
 
VOID PhUpdateModuleNode (_In_ PPH_MODULE_LIST_CONTEXT Context, _In_ PPH_MODULE_NODE ModuleNode)
 
VOID PhTickModuleNodes (_In_ PPH_MODULE_LIST_CONTEXT Context)
 
 BEGIN_SORT_FUNCTION (TriState)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Name)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (BaseAddress)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Size)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Description)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (CompanyName)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Version)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (FileName)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Type)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (LoadCount)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (VerificationStatus)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (VerifiedSigner)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Aslr)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (TimeStamp)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (CfGuard)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (LoadTime)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (LoadReason)
 
PPH_MODULE_ITEM PhGetSelectedModuleItem (_In_ PPH_MODULE_LIST_CONTEXT Context)
 
VOID PhGetSelectedModuleItems (_In_ PPH_MODULE_LIST_CONTEXT Context, _Out_ PPH_MODULE_ITEM **Modules, _Out_ PULONG NumberOfModules)
 
VOID PhDeselectAllModuleNodes (_In_ PPH_MODULE_LIST_CONTEXT Context)
 

Macro Definition Documentation

#define BEGIN_SORT_FUNCTION (   Column)
Value:
static int __cdecl PhpModuleTreeNewCompare##Column( \
_In_ void *_context, \
_In_ const void *_elem1, \
_In_ const void *_elem2 \
) \
{ \
PPH_MODULE_NODE node1 = *(PPH_MODULE_NODE *)_elem1; \
PPH_MODULE_NODE node2 = *(PPH_MODULE_NODE *)_elem2; \
PPH_MODULE_ITEM moduleItem1 = node1->ModuleItem; \
PPH_MODULE_ITEM moduleItem2 = node2->ModuleItem; \
int sortResult = 0;

Definition at line 327 of file modlist.c.

#define END_SORT_FUNCTION
Value:
if (sortResult == 0) \
sortResult = uintptrcmp((ULONG_PTR)moduleItem1->BaseAddress, (ULONG_PTR)moduleItem2->BaseAddress); \
\
return PhModifySort(sortResult, ((PPH_MODULE_LIST_CONTEXT)_context)->TreeNewSortOrder); \
}

Definition at line 339 of file modlist.c.

#define SORT_FUNCTION (   Column)    PhpModuleTreeNewCompare##Column

Definition at line 325 of file modlist.c.

Function Documentation

BEGIN_SORT_FUNCTION ( TriState  )

Definition at line 359 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Name  )

Definition at line 376 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( BaseAddress  )

Definition at line 382 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Size  )

Definition at line 388 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Description  )

Definition at line 394 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( CompanyName  )

Definition at line 400 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Version  )

Definition at line 406 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( FileName  )

Definition at line 412 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Type  )

Definition at line 418 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( LoadCount  )

Definition at line 424 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( VerificationStatus  )

Definition at line 430 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( VerifiedSigner  )

Definition at line 436 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Aslr  )

Definition at line 446 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( TimeStamp  )

Definition at line 455 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( CfGuard  )

Definition at line 461 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( LoadTime  )

Definition at line 470 of file modlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( LoadReason  )

Definition at line 476 of file modlist.c.

PPH_MODULE_NODE PhAddModuleNode ( _Inout_ PPH_MODULE_LIST_CONTEXT  Context,
_In_ PPH_MODULE_ITEM  ModuleItem,
_In_ ULONG  RunId 
)

Definition at line 183 of file modlist.c.

VOID PhDeleteModuleList ( _In_ PPH_MODULE_LIST_CONTEXT  Context)

Definition at line 119 of file modlist.c.

VOID PhDeselectAllModuleNodes ( _In_ PPH_MODULE_LIST_CONTEXT  Context)

Definition at line 972 of file modlist.c.

PPH_MODULE_NODE PhFindModuleNode ( _In_ PPH_MODULE_LIST_CONTEXT  Context,
_In_ PPH_MODULE_ITEM  ModuleItem 
)

Definition at line 224 of file modlist.c.

PPH_MODULE_ITEM PhGetSelectedModuleItem ( _In_ PPH_MODULE_LIST_CONTEXT  Context)

Definition at line 924 of file modlist.c.

VOID PhGetSelectedModuleItems ( _In_ PPH_MODULE_LIST_CONTEXT  Context,
_Out_ PPH_MODULE_ITEM **  Modules,
_Out_ PULONG  NumberOfModules 
)

Definition at line 945 of file modlist.c.

VOID PhInitializeModuleList ( _In_ HWND  ParentWindowHandle,
_In_ HWND  TreeNewHandle,
_Out_ PPH_MODULE_LIST_CONTEXT  Context 
)

Definition at line 63 of file modlist.c.

VOID PhLoadSettingsModuleList ( _Inout_ PPH_MODULE_LIST_CONTEXT  Context)

Definition at line 155 of file modlist.c.

VOID PhpDestroyModuleNode ( _In_ PPH_MODULE_NODE  ModuleNode)

Definition at line 271 of file modlist.c.

BOOLEAN PhpModuleNodeHashtableCompareFunction ( _In_ PVOID  Entry1,
_In_ PVOID  Entry2 
)

Definition at line 137 of file modlist.c.

ULONG PhpModuleNodeHashtableHashFunction ( _In_ PVOID  Entry)

Definition at line 148 of file modlist.c.

END_SORT_FUNCTION BOOLEAN NTAPI PhpModuleTreeNewCallback ( _In_ HWND  hwnd,
_In_ PH_TREENEW_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2,
_In_opt_ PVOID  Context 
)

Definition at line 482 of file modlist.c.

LONG PhpModuleTreeNewPostSortFunction ( _In_ LONG  Result,
_In_ PVOID  Node1,
_In_ PVOID  Node2,
_In_ PH_SORT_ORDER  SortOrder 
)

Definition at line 346 of file modlist.c.

VOID PhpRemoveModuleNode ( _In_ PPH_MODULE_NODE  ModuleNode,
_In_ PPH_MODULE_LIST_CONTEXT  Context 
)

Definition at line 288 of file modlist.c.

VOID PhRemoveModuleNode ( _In_ PPH_MODULE_LIST_CONTEXT  Context,
_In_ PPH_MODULE_NODE  ModuleNode 
)

Definition at line 246 of file modlist.c.

VOID PhSaveSettingsModuleList ( _Inout_ PPH_MODULE_LIST_CONTEXT  Context)

Definition at line 169 of file modlist.c.

VOID PhTickModuleNodes ( _In_ PPH_MODULE_LIST_CONTEXT  Context)

Definition at line 318 of file modlist.c.

VOID PhUpdateModuleNode ( _In_ PPH_MODULE_LIST_CONTEXT  Context,
_In_ PPH_MODULE_NODE  ModuleNode 
)

Definition at line 305 of file modlist.c.