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

Go to the source code of this file.

Macros

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

Functions

BOOLEAN PhpNetworkNodeHashtableCompareFunction (_In_ PVOID Entry1, _In_ PVOID Entry2)
 
ULONG PhpNetworkNodeHashtableHashFunction (_In_ PVOID Entry)
 
VOID PhpRemoveNetworkNode (_In_ PPH_NETWORK_NODE NetworkNode)
 
LONG PhpNetworkTreeNewPostSortFunction (_In_ LONG Result, _In_ PVOID Node1, _In_ PVOID Node2, _In_ PH_SORT_ORDER SortOrder)
 
BOOLEAN NTAPI PhpNetworkTreeNewCallback (_In_ HWND hwnd, _In_ PH_TREENEW_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2, _In_opt_ PVOID Context)
 
PPH_STRING PhpGetNetworkItemProcessName (_In_ PPH_NETWORK_ITEM NetworkItem)
 
VOID PhpUpdateNetworkNodeAddressStrings (_In_ PPH_NETWORK_NODE NetworkNode)
 
VOID PhNetworkTreeListInitialization (VOID)
 
VOID PhInitializeNetworkTreeList (_In_ HWND hwnd)
 
VOID PhLoadSettingsNetworkTreeList (VOID)
 
VOID PhSaveSettingsNetworkTreeList (VOID)
 
struct _PH_TN_FILTER_SUPPORTPhGetFilterSupportNetworkTreeList (VOID)
 
PPH_NETWORK_NODE PhAddNetworkNode (_In_ PPH_NETWORK_ITEM NetworkItem, _In_ ULONG RunId)
 
PPH_NETWORK_NODE PhFindNetworkNode (_In_ PPH_NETWORK_ITEM NetworkItem)
 
VOID PhRemoveNetworkNode (_In_ PPH_NETWORK_NODE NetworkNode)
 
VOID PhUpdateNetworkNode (_In_ PPH_NETWORK_NODE NetworkNode)
 
VOID PhTickNetworkNodes (VOID)
 
 BEGIN_SORT_FUNCTION (Process)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (LocalAddress)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (LocalPort)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (RemoteAddress)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (RemotePort)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Protocol)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (State)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Owner)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (TimeStamp)
 
PPH_NETWORK_ITEM PhGetSelectedNetworkItem (VOID)
 
VOID PhGetSelectedNetworkItems (_Out_ PPH_NETWORK_ITEM **NetworkItems, _Out_ PULONG NumberOfNetworkItems)
 
VOID PhDeselectAllNetworkNodes (VOID)
 
VOID PhSelectAndEnsureVisibleNetworkNode (_In_ PPH_NETWORK_NODE NetworkNode)
 
VOID PhCopyNetworkList (VOID)
 
VOID PhWriteNetworkList (_Inout_ PPH_FILE_STREAM FileStream, _In_ ULONG Mode)
 

Variables

BOOLEAN PhNetworkTreeListStateHighlighting = TRUE
 

Macro Definition Documentation

#define BEGIN_SORT_FUNCTION (   Column)
Value:
static int __cdecl PhpNetworkTreeNewCompare##Column( \
_In_ const void *_elem1, \
_In_ const void *_elem2 \
) \
{ \
PPH_NETWORK_ITEM networkItem1 = node1->NetworkItem; \
PPH_NETWORK_ITEM networkItem2 = node2->NetworkItem; \
int sortResult = 0;

Definition at line 331 of file netlist.c.

#define END_SORT_FUNCTION
Value:
if (sortResult == 0) \
sortResult = intcmp(node1->UniqueId, node2->UniqueId); \
\
return PhModifySort(sortResult, NetworkTreeListSortOrder); \
}

Definition at line 342 of file netlist.c.

#define SORT_FUNCTION (   Column)    PhpNetworkTreeNewCompare##Column

Definition at line 329 of file netlist.c.

Function Documentation

BEGIN_SORT_FUNCTION ( Process  )

Definition at line 362 of file netlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( LocalAddress  )

Definition at line 368 of file netlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( LocalPort  )

Definition at line 374 of file netlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( RemoteAddress  )

Definition at line 380 of file netlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( RemotePort  )

Definition at line 386 of file netlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Protocol  )

Definition at line 392 of file netlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( State  )

Definition at line 398 of file netlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Owner  )

Definition at line 404 of file netlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( TimeStamp  )

Definition at line 410 of file netlist.c.

PPH_NETWORK_NODE PhAddNetworkNode ( _In_ PPH_NETWORK_ITEM  NetworkItem,
_In_ ULONG  RunId 
)

Definition at line 187 of file netlist.c.

VOID PhCopyNetworkList ( VOID  )

Definition at line 761 of file netlist.c.

VOID PhDeselectAllNetworkNodes ( VOID  )

Definition at line 739 of file netlist.c.

PPH_NETWORK_NODE PhFindNetworkNode ( _In_ PPH_NETWORK_ITEM  NetworkItem)

Definition at line 234 of file netlist.c.

struct _PH_TN_FILTER_SUPPORT* PhGetFilterSupportNetworkTreeList ( VOID  )
read

Definition at line 180 of file netlist.c.

PPH_NETWORK_ITEM PhGetSelectedNetworkItem ( VOID  )

Definition at line 692 of file netlist.c.

VOID PhGetSelectedNetworkItems ( _Out_ PPH_NETWORK_ITEM **  NetworkItems,
_Out_ PULONG  NumberOfNetworkItems 
)

Definition at line 713 of file netlist.c.

VOID PhInitializeNetworkTreeList ( _In_ HWND  hwnd)

Definition at line 111 of file netlist.c.

VOID PhLoadSettingsNetworkTreeList ( VOID  )

Definition at line 152 of file netlist.c.

VOID PhNetworkTreeListInitialization ( VOID  )

Definition at line 80 of file netlist.c.

PPH_STRING PhpGetNetworkItemProcessName ( _In_ PPH_NETWORK_ITEM  NetworkItem)

Definition at line 656 of file netlist.c.

BOOLEAN PhpNetworkNodeHashtableCompareFunction ( _In_ PVOID  Entry1,
_In_ PVOID  Entry2 
)

Definition at line 93 of file netlist.c.

ULONG PhpNetworkNodeHashtableHashFunction ( _In_ PVOID  Entry)

Definition at line 104 of file netlist.c.

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

Definition at line 416 of file netlist.c.

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

Definition at line 349 of file netlist.c.

VOID PhpRemoveNetworkNode ( _In_ PPH_NETWORK_NODE  NetworkNode)

Definition at line 279 of file netlist.c.

VOID PhpUpdateNetworkNodeAddressStrings ( _In_ PPH_NETWORK_NODE  NetworkNode)

Definition at line 677 of file netlist.c.

VOID PhRemoveNetworkNode ( _In_ PPH_NETWORK_NODE  NetworkNode)

Definition at line 255 of file netlist.c.

VOID PhSaveSettingsNetworkTreeList ( VOID  )

Definition at line 166 of file netlist.c.

VOID PhSelectAndEnsureVisibleNetworkNode ( _In_ PPH_NETWORK_NODE  NetworkNode)

Definition at line 746 of file netlist.c.

VOID PhTickNetworkNodes ( VOID  )

Definition at line 315 of file netlist.c.

VOID PhUpdateNetworkNode ( _In_ PPH_NETWORK_NODE  NetworkNode)

Definition at line 303 of file netlist.c.

VOID PhWriteNetworkList ( _Inout_ PPH_FILE_STREAM  FileStream,
_In_ ULONG  Mode 
)

Definition at line 772 of file netlist.c.

Variable Documentation

BOOLEAN PhNetworkTreeListStateHighlighting = TRUE

Definition at line 75 of file netlist.c.