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

Go to the source code of this file.

Macros

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

Functions

BOOLEAN PhpHandleNodeHashtableCompareFunction (_In_ PVOID Entry1, _In_ PVOID Entry2)
 
ULONG PhpHandleNodeHashtableHashFunction (_In_ PVOID Entry)
 
VOID PhpDestroyHandleNode (_In_ PPH_HANDLE_NODE HandleNode)
 
VOID PhpRemoveHandleNode (_In_ PPH_HANDLE_NODE HandleNode, _In_ PPH_HANDLE_LIST_CONTEXT Context)
 
LONG PhpHandleTreeNewPostSortFunction (_In_ LONG Result, _In_ PVOID Node1, _In_ PVOID Node2, _In_ PH_SORT_ORDER SortOrder)
 
BOOLEAN NTAPI PhpHandleTreeNewCallback (_In_ HWND hwnd, _In_ PH_TREENEW_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2, _In_opt_ PVOID Context)
 
VOID PhInitializeHandleList (_In_ HWND ParentWindowHandle, _In_ HWND TreeNewHandle, _Out_ PPH_HANDLE_LIST_CONTEXT Context)
 
VOID PhDeleteHandleList (_In_ PPH_HANDLE_LIST_CONTEXT Context)
 
VOID PhLoadSettingsHandleList (_Inout_ PPH_HANDLE_LIST_CONTEXT Context)
 
VOID PhSaveSettingsHandleList (_Inout_ PPH_HANDLE_LIST_CONTEXT Context)
 
VOID PhSetOptionsHandleList (_Inout_ PPH_HANDLE_LIST_CONTEXT Context, _In_ BOOLEAN HideUnnamedHandles)
 
PPH_HANDLE_NODE PhAddHandleNode (_Inout_ PPH_HANDLE_LIST_CONTEXT Context, _In_ PPH_HANDLE_ITEM HandleItem, _In_ ULONG RunId)
 
PPH_HANDLE_NODE PhFindHandleNode (_In_ PPH_HANDLE_LIST_CONTEXT Context, _In_ HANDLE Handle)
 
VOID PhRemoveHandleNode (_In_ PPH_HANDLE_LIST_CONTEXT Context, _In_ PPH_HANDLE_NODE HandleNode)
 
VOID PhUpdateHandleNode (_In_ PPH_HANDLE_LIST_CONTEXT Context, _In_ PPH_HANDLE_NODE HandleNode)
 
VOID PhTickHandleNodes (_In_ PPH_HANDLE_LIST_CONTEXT Context)
 
 BEGIN_SORT_FUNCTION (Type)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Name)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Handle)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (ObjectAddress)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Attributes)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (GrantedAccess)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (OriginalName)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (FileShareAccess)
 
PPH_HANDLE_ITEM PhGetSelectedHandleItem (_In_ PPH_HANDLE_LIST_CONTEXT Context)
 
VOID PhGetSelectedHandleItems (_In_ PPH_HANDLE_LIST_CONTEXT Context, _Out_ PPH_HANDLE_ITEM **Handles, _Out_ PULONG NumberOfHandles)
 
VOID PhDeselectAllHandleNodes (_In_ PPH_HANDLE_LIST_CONTEXT Context)
 

Macro Definition Documentation

#define BEGIN_SORT_FUNCTION (   Column)
Value:
static int __cdecl PhpHandleTreeNewCompare##Column( \
_In_ void *_context, \
_In_ const void *_elem1, \
_In_ const void *_elem2 \
) \
{ \
PPH_HANDLE_NODE node1 = *(PPH_HANDLE_NODE *)_elem1; \
PPH_HANDLE_NODE node2 = *(PPH_HANDLE_NODE *)_elem2; \
PPH_HANDLE_ITEM handleItem1 = node1->HandleItem; \
PPH_HANDLE_ITEM handleItem2 = node2->HandleItem; \
int sortResult = 0;

Definition at line 354 of file hndllist.c.

#define END_SORT_FUNCTION
Value:
if (sortResult == 0) \
sortResult = uintptrcmp((ULONG_PTR)node1->Handle, (ULONG_PTR)node2->Handle); \
\
return PhModifySort(sortResult, context->TreeNewSortOrder); \
}

Definition at line 367 of file hndllist.c.

#define SORT_FUNCTION (   Column)    PhpHandleTreeNewCompare##Column

Definition at line 352 of file hndllist.c.

Function Documentation

BEGIN_SORT_FUNCTION ( Type  )

Definition at line 387 of file hndllist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Name  )

Definition at line 393 of file hndllist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Handle  )

Definition at line 399 of file hndllist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( ObjectAddress  )

Definition at line 405 of file hndllist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Attributes  )

Definition at line 411 of file hndllist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( GrantedAccess  )

Definition at line 417 of file hndllist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( OriginalName  )

Definition at line 423 of file hndllist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( FileShareAccess  )

Definition at line 429 of file hndllist.c.

PPH_HANDLE_NODE PhAddHandleNode ( _Inout_ PPH_HANDLE_LIST_CONTEXT  Context,
_In_ PPH_HANDLE_ITEM  HandleItem,
_In_ ULONG  RunId 
)

Definition at line 212 of file hndllist.c.

VOID PhDeleteHandleList ( _In_ PPH_HANDLE_LIST_CONTEXT  Context)

Definition at line 110 of file hndllist.c.

VOID PhDeselectAllHandleNodes ( _In_ PPH_HANDLE_LIST_CONTEXT  Context)

Definition at line 748 of file hndllist.c.

PPH_HANDLE_NODE PhFindHandleNode ( _In_ PPH_HANDLE_LIST_CONTEXT  Context,
_In_ HANDLE  Handle 
)

Definition at line 257 of file hndllist.c.

PPH_HANDLE_ITEM PhGetSelectedHandleItem ( _In_ PPH_HANDLE_LIST_CONTEXT  Context)

Definition at line 700 of file hndllist.c.

VOID PhGetSelectedHandleItems ( _In_ PPH_HANDLE_LIST_CONTEXT  Context,
_Out_ PPH_HANDLE_ITEM **  Handles,
_Out_ PULONG  NumberOfHandles 
)

Definition at line 721 of file hndllist.c.

VOID PhInitializeHandleList ( _In_ HWND  ParentWindowHandle,
_In_ HWND  TreeNewHandle,
_Out_ PPH_HANDLE_LIST_CONTEXT  Context 
)

Definition at line 63 of file hndllist.c.

VOID PhLoadSettingsHandleList ( _Inout_ PPH_HANDLE_LIST_CONTEXT  Context)

Definition at line 143 of file hndllist.c.

VOID PhpDestroyHandleNode ( _In_ PPH_HANDLE_NODE  HandleNode)

Definition at line 304 of file hndllist.c.

BOOLEAN PhpHandleNodeHashtableCompareFunction ( _In_ PVOID  Entry1,
_In_ PVOID  Entry2 
)

Definition at line 125 of file hndllist.c.

ULONG PhpHandleNodeHashtableHashFunction ( _In_ PVOID  Entry)

Definition at line 136 of file hndllist.c.

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

Definition at line 439 of file hndllist.c.

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

Definition at line 374 of file hndllist.c.

VOID PhpRemoveHandleNode ( _In_ PPH_HANDLE_NODE  HandleNode,
_In_ PPH_HANDLE_LIST_CONTEXT  Context 
)

Definition at line 317 of file hndllist.c.

VOID PhRemoveHandleNode ( _In_ PPH_HANDLE_LIST_CONTEXT  Context,
_In_ PPH_HANDLE_NODE  HandleNode 
)

Definition at line 279 of file hndllist.c.

VOID PhSaveSettingsHandleList ( _Inout_ PPH_HANDLE_LIST_CONTEXT  Context)

Definition at line 157 of file hndllist.c.

VOID PhSetOptionsHandleList ( _Inout_ PPH_HANDLE_LIST_CONTEXT  Context,
_In_ BOOLEAN  HideUnnamedHandles 
)

Definition at line 171 of file hndllist.c.

VOID PhTickHandleNodes ( _In_ PPH_HANDLE_LIST_CONTEXT  Context)

Definition at line 345 of file hndllist.c.

VOID PhUpdateHandleNode ( _In_ PPH_HANDLE_LIST_CONTEXT  Context,
_In_ PPH_HANDLE_NODE  HandleNode 
)

Definition at line 334 of file hndllist.c.