Process Hacker
srvlist.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)   PhpServiceTreeNewCompare##Column
 
#define BEGIN_SORT_FUNCTION(Column)
 
#define END_SORT_FUNCTION
 

Functions

BOOLEAN PhpServiceNodeHashtableCompareFunction (_In_ PVOID Entry1, _In_ PVOID Entry2)
 
ULONG PhpServiceNodeHashtableHashFunction (_In_ PVOID Entry)
 
VOID PhpRemoveServiceNode (_In_ PPH_SERVICE_NODE ServiceNode)
 
LONG PhpServiceTreeNewPostSortFunction (_In_ LONG Result, _In_ PVOID Node1, _In_ PVOID Node2, _In_ PH_SORT_ORDER SortOrder)
 
BOOLEAN NTAPI PhpServiceTreeNewCallback (_In_ HWND hwnd, _In_ PH_TREENEW_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2, _In_opt_ PVOID Context)
 
VOID PhServiceTreeListInitialization (VOID)
 
VOID PhInitializeServiceTreeList (_In_ HWND hwnd)
 
VOID PhLoadSettingsServiceTreeList (VOID)
 
VOID PhSaveSettingsServiceTreeList (VOID)
 
struct _PH_TN_FILTER_SUPPORTPhGetFilterSupportServiceTreeList (VOID)
 
PPH_SERVICE_NODE PhAddServiceNode (_In_ PPH_SERVICE_ITEM ServiceItem, _In_ ULONG RunId)
 
PPH_SERVICE_NODE PhFindServiceNode (_In_ PPH_SERVICE_ITEM ServiceItem)
 
VOID PhRemoveServiceNode (_In_ PPH_SERVICE_NODE ServiceNode)
 
VOID PhUpdateServiceNode (_In_ PPH_SERVICE_NODE ServiceNode)
 
VOID PhTickServiceNodes (VOID)
 
 BEGIN_SORT_FUNCTION (Name)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (DisplayName)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Type)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Status)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (StartType)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Pid)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (BinaryPath)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (ErrorControl)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Group)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Description)
 
PPH_SERVICE_ITEM PhGetSelectedServiceItem (VOID)
 
VOID PhGetSelectedServiceItems (_Out_ PPH_SERVICE_ITEM **Services, _Out_ PULONG NumberOfServices)
 
VOID PhDeselectAllServiceNodes (VOID)
 
VOID PhSelectAndEnsureVisibleServiceNode (_In_ PPH_SERVICE_NODE ServiceNode)
 
VOID PhCopyServiceList (VOID)
 
VOID PhWriteServiceList (_Inout_ PPH_FILE_STREAM FileStream, _In_ ULONG Mode)
 

Variables

BOOLEAN PhServiceTreeListStateHighlighting = TRUE
 

Macro Definition Documentation

#define BEGIN_SORT_FUNCTION (   Column)
Value:
static int __cdecl PhpServiceTreeNewCompare##Column( \
_In_ const void *_elem1, \
_In_ const void *_elem2 \
) \
{ \
PPH_SERVICE_ITEM serviceItem1 = node1->ServiceItem; \
PPH_SERVICE_ITEM serviceItem2 = node2->ServiceItem; \
int sortResult = 0;

Definition at line 379 of file srvlist.c.

#define END_SORT_FUNCTION
Value:
/* if (sortResult == 0) */ \
/* sortResult = PhCompareString(serviceItem1->Name, serviceItem2->Name, TRUE); */ \
\
return PhModifySort(sortResult, ServiceTreeListSortOrder); \
}

Definition at line 390 of file srvlist.c.

#define SORT_FUNCTION (   Column)    PhpServiceTreeNewCompare##Column

Definition at line 377 of file srvlist.c.

Function Documentation

BEGIN_SORT_FUNCTION ( Name  )

Definition at line 407 of file srvlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( DisplayName  )

Definition at line 413 of file srvlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Type  )

Definition at line 419 of file srvlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Status  )

Definition at line 425 of file srvlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( StartType  )

Definition at line 431 of file srvlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Pid  )

Definition at line 442 of file srvlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( BinaryPath  )

Definition at line 448 of file srvlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( ErrorControl  )

Definition at line 456 of file srvlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Group  )

Definition at line 462 of file srvlist.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Description  )

Definition at line 470 of file srvlist.c.

PPH_SERVICE_NODE PhAddServiceNode ( _In_ PPH_SERVICE_ITEM  ServiceItem,
_In_ ULONG  RunId 
)

Definition at line 190 of file srvlist.c.

VOID PhCopyServiceList ( VOID  )

Definition at line 801 of file srvlist.c.

VOID PhDeselectAllServiceNodes ( VOID  )

Definition at line 779 of file srvlist.c.

PPH_SERVICE_NODE PhFindServiceNode ( _In_ PPH_SERVICE_ITEM  ServiceItem)

Definition at line 233 of file srvlist.c.

struct _PH_TN_FILTER_SUPPORT* PhGetFilterSupportServiceTreeList ( VOID  )
read

Definition at line 183 of file srvlist.c.

PPH_SERVICE_ITEM PhGetSelectedServiceItem ( VOID  )

Definition at line 732 of file srvlist.c.

VOID PhGetSelectedServiceItems ( _Out_ PPH_SERVICE_ITEM **  Services,
_Out_ PULONG  NumberOfServices 
)

Definition at line 753 of file srvlist.c.

VOID PhInitializeServiceTreeList ( _In_ HWND  hwnd)

Definition at line 107 of file srvlist.c.

VOID PhLoadSettingsServiceTreeList ( VOID  )

Definition at line 155 of file srvlist.c.

VOID PhpRemoveServiceNode ( _In_ PPH_SERVICE_NODE  ServiceNode)

Definition at line 278 of file srvlist.c.

BOOLEAN PhpServiceNodeHashtableCompareFunction ( _In_ PVOID  Entry1,
_In_ PVOID  Entry2 
)

Definition at line 89 of file srvlist.c.

ULONG PhpServiceNodeHashtableHashFunction ( _In_ PVOID  Entry)

Definition at line 100 of file srvlist.c.

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

Definition at line 478 of file srvlist.c.

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

Definition at line 397 of file srvlist.c.

VOID PhRemoveServiceNode ( _In_ PPH_SERVICE_NODE  ServiceNode)

Definition at line 254 of file srvlist.c.

VOID PhSaveSettingsServiceTreeList ( VOID  )

Definition at line 169 of file srvlist.c.

VOID PhSelectAndEnsureVisibleServiceNode ( _In_ PPH_SERVICE_NODE  ServiceNode)

Definition at line 786 of file srvlist.c.

VOID PhServiceTreeListInitialization ( VOID  )

Definition at line 76 of file srvlist.c.

VOID PhTickServiceNodes ( VOID  )

Definition at line 316 of file srvlist.c.

VOID PhUpdateServiceNode ( _In_ PPH_SERVICE_NODE  ServiceNode)

Definition at line 304 of file srvlist.c.

VOID PhWriteServiceList ( _Inout_ PPH_FILE_STREAM  FileStream,
_In_ ULONG  Mode 
)

Definition at line 812 of file srvlist.c.

Variable Documentation

BOOLEAN PhServiceTreeListStateHighlighting = TRUE

Definition at line 73 of file srvlist.c.