| 
    Process Hacker
    
   | 
 
#include <phapp.h>#include <settings.h>#include <extmgri.h>#include <phplug.h>#include <cpysave.h>#include <emenu.h>#include <verify.h>Go to the source code of this file.
Macros | |
| #define | SORT_FUNCTION(Column) PhpProcessTreeNewCompare##Column | 
| #define | BEGIN_SORT_FUNCTION(Column) | 
| #define | END_SORT_FUNCTION | 
Variables | |
| BOOLEAN | PhProcessTreeListStateHighlighting = TRUE | 
| #define BEGIN_SORT_FUNCTION | ( | Column | ) | 
Definition at line 1159 of file proctree.c.
| #define END_SORT_FUNCTION | 
Definition at line 1170 of file proctree.c.
| #define SORT_FUNCTION | ( | Column | ) | PhpProcessTreeNewCompare##Column | 
Definition at line 1157 of file proctree.c.
| BEGIN_SORT_FUNCTION | ( | Name | ) | 
Definition at line 1190 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Pid | ) | 
Definition at line 1196 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Cpu | ) | 
Definition at line 1203 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoTotalRate | ) | 
Definition at line 1209 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PrivateBytes | ) | 
Definition at line 1218 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | UserName | ) | 
Definition at line 1224 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Description | ) | 
Definition at line 1230 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | CompanyName | ) | 
Definition at line 1242 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Version | ) | 
Definition at line 1252 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | FileName | ) | 
Definition at line 1262 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | CommandLine | ) | 
Definition at line 1272 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PeakPrivateBytes | ) | 
Definition at line 1282 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | WorkingSet | ) | 
Definition at line 1288 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PeakWorkingSet | ) | 
Definition at line 1294 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PrivateWs | ) | 
Definition at line 1300 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PrivateWsWin7 | ) | 
Definition at line 1308 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | SharedWs | ) | 
Definition at line 1314 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | ShareableWs | ) | 
Definition at line 1322 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | VirtualSize | ) | 
Definition at line 1330 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PeakVirtualSize | ) | 
Definition at line 1336 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PageFaults | ) | 
Definition at line 1342 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | SessionId | ) | 
Definition at line 1348 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | BasePriority | ) | 
Definition at line 1354 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Threads | ) | 
Definition at line 1360 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Handles | ) | 
Definition at line 1366 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | GdiHandles | ) | 
Definition at line 1372 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | UserHandles | ) | 
Definition at line 1378 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoRoRate | ) | 
Definition at line 1384 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoWRate | ) | 
Definition at line 1393 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Integrity | ) | 
Definition at line 1402 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoPriority | ) | 
Definition at line 1408 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PagePriority | ) | 
Definition at line 1414 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | StartTime | ) | 
Definition at line 1420 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | TotalCpuTime | ) | 
Definition at line 1426 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | KernelCpuTime | ) | 
Definition at line 1435 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | UserCpuTime | ) | 
Definition at line 1444 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | VerificationStatus | ) | 
Definition at line 1453 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | VerifiedSigner | ) | 
Definition at line 1459 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Aslr | ) | 
Definition at line 1469 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | RelativeStartTime | ) | 
Definition at line 1480 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Bits | ) | 
Definition at line 1486 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Elevation | ) | 
Definition at line 1495 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | WindowTitle | ) | 
Definition at line 1530 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | WindowStatus | ) | 
Definition at line 1538 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Cycles | ) | 
Definition at line 1550 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | CyclesWin7 | ) | 
Definition at line 1556 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | CyclesDelta | ) | 
Definition at line 1562 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | CyclesDeltaWin7 | ) | 
Definition at line 1568 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | DepStatus | ) | 
Definition at line 1574 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Virtualized | ) | 
Definition at line 1582 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | ContextSwitches | ) | 
Definition at line 1590 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | ContextSwitchesDelta | ) | 
Definition at line 1596 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PageFaultsDelta | ) | 
Definition at line 1602 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoReads | ) | 
Definition at line 1608 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoWrites | ) | 
Definition at line 1614 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoOther | ) | 
Definition at line 1620 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoReadBytes | ) | 
Definition at line 1626 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoWriteBytes | ) | 
Definition at line 1632 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoOtherBytes | ) | 
Definition at line 1638 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoReadsDelta | ) | 
Definition at line 1644 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoWritesDelta | ) | 
Definition at line 1650 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | IoOtherDelta | ) | 
Definition at line 1656 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | OsContext | ) | 
Definition at line 1662 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PagedPool | ) | 
Definition at line 1670 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PeakPagedPool | ) | 
Definition at line 1676 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | NonPagedPool | ) | 
Definition at line 1682 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PeakNonPagedPool | ) | 
Definition at line 1688 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | MinimumWorkingSet | ) | 
Definition at line 1694 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | MaximumWorkingSet | ) | 
Definition at line 1702 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PrivateBytesDelta | ) | 
Definition at line 1710 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | Subsystem | ) | 
Definition at line 1716 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | PackageName | ) | 
Definition at line 1724 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | AppId | ) | 
Definition at line 1730 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | DpiAwareness | ) | 
Definition at line 1738 of file proctree.c.
| END_SORT_FUNCTION BEGIN_SORT_FUNCTION | ( | CfGuard | ) | 
Definition at line 1746 of file proctree.c.
| PPH_PROCESS_NODE PhAddProcessNode | ( | _In_ PPH_PROCESS_ITEM | ProcessItem, | 
| _In_ ULONG | RunId | ||
| ) | 
Definition at line 291 of file proctree.c.
| FORCEINLINE BOOLEAN PhCompareProcessNode | ( | _In_ PPH_PROCESS_NODE | Value1, | 
| _In_ PPH_PROCESS_NODE | Value2 | ||
| ) | 
Definition at line 266 of file proctree.c.
Definition at line 3273 of file proctree.c.
Definition at line 3038 of file proctree.c.
Definition at line 3312 of file proctree.c.
| VOID PhExpandAllProcessNodes | ( | _In_ BOOLEAN | Expand | ) | 
Definition at line 3045 of file proctree.c.
| PPH_PROCESS_NODE PhFindProcessNode | ( | _In_ HANDLE | ProcessId | ) | 
Definition at line 419 of file proctree.c.
      
  | 
  read | 
Definition at line 259 of file proctree.c.
| PPH_LIST PhGetProcessTreeListLines | ( | _In_ HWND | TreeListHandle, | 
| _In_ ULONG | NumberOfNodes, | ||
| _In_ PPH_LIST | RootNodes, | ||
| _In_ ULONG | Mode | ||
| ) | 
Definition at line 3208 of file proctree.c.
| PPH_PROCESS_ITEM PhGetSelectedProcessItem | ( | VOID | ) | 
Definition at line 2991 of file proctree.c.
| VOID PhGetSelectedProcessItems | ( | _Out_ PPH_PROCESS_ITEM ** | Processes, | 
| _Out_ PULONG | NumberOfProcesses | ||
| ) | 
Definition at line 3012 of file proctree.c.
| FORCEINLINE ULONG PhHashProcessNode | ( | _In_ PPH_PROCESS_NODE | Value | ) | 
Definition at line 274 of file proctree.c.
| VOID PhInitializeProcessTreeList | ( | _In_ HWND | hwnd | ) | 
Definition at line 96 of file proctree.c.
Definition at line 3067 of file proctree.c.
Definition at line 216 of file proctree.c.
| VOID PhpPopulateTableWithProcessNodes | ( | _In_ HWND | TreeListHandle, | 
| _In_ PPH_PROCESS_NODE | Node, | ||
| _In_ ULONG | Level, | ||
| _In_ PPH_STRING ** | Table, | ||
| _Inout_ PULONG | Index, | ||
| _In_ PULONG | DisplayToId, | ||
| _In_ ULONG | Columns | ||
| ) | 
Definition at line 3151 of file proctree.c.
| END_SORT_FUNCTION BOOLEAN NTAPI PhpProcessTreeNewCallback | ( | _In_ HWND | hwnd, | 
| _In_ PH_TREENEW_MESSAGE | Message, | ||
| _In_opt_ PVOID | Parameter1, | ||
| _In_opt_ PVOID | Parameter2, | ||
| _In_opt_ PVOID | Context | ||
| ) | 
Definition at line 1757 of file proctree.c.
| LONG PhpProcessTreeNewPostSortFunction | ( | _In_ LONG | Result, | 
| _In_ PVOID | Node1, | ||
| _In_ PVOID | Node2, | ||
| _In_ PH_SORT_ORDER | SortOrder | ||
| ) | 
Definition at line 1177 of file proctree.c.
| VOID PhpRemoveProcessNode | ( | _In_ PPH_PROCESS_NODE | ProcessNode | ) | 
Definition at line 469 of file proctree.c.
Definition at line 88 of file proctree.c.
Definition at line 1072 of file proctree.c.
| static VOID PhpUpdateProcessNodeCycles | ( | _Inout_ PPH_PROCESS_NODE | ProcessNode | ) | 
Definition at line 1103 of file proctree.c.
| FORCEINLINE BOOLEAN PhpValidateParentCreateTime | ( | _In_ PPH_PROCESS_NODE | Child, | 
| _In_ PPH_PROCESS_NODE | Parent | ||
| ) | 
Definition at line 281 of file proctree.c.
Definition at line 251 of file proctree.c.
| VOID PhRemoveProcessNode | ( | _In_ PPH_PROCESS_NODE | ProcessNode | ) | 
Definition at line 445 of file proctree.c.
Definition at line 237 of file proctree.c.
| VOID PhSelectAndEnsureVisibleProcessNode | ( | _In_ PPH_PROCESS_NODE | ProcessNode | ) | 
Definition at line 3090 of file proctree.c.
| VOID PhSelectAndEnsureVisibleProcessNodes | ( | _In_ PPH_PROCESS_NODE * | ProcessNodes, | 
| _In_ ULONG | NumberOfProcessNodes | ||
| ) | 
Definition at line 3097 of file proctree.c.
Definition at line 574 of file proctree.c.
| VOID PhUpdateProcessNode | ( | _In_ PPH_PROCESS_NODE | ProcessNode | ) | 
Definition at line 558 of file proctree.c.
| VOID PhWriteProcessTree | ( | _Inout_ PPH_FILE_STREAM | FileStream, | 
| _In_ ULONG | Mode | ||
| ) | 
Definition at line 3284 of file proctree.c.
| BOOLEAN PhProcessTreeListStateHighlighting = TRUE | 
Definition at line 75 of file proctree.c.