17 _Inout_ PPH_SH_STATE ShState,
20 _In_ COLORREF NewTempBackColor,
21 _In_opt_ HWND TreeNewHandleForUpdate
30 ShState->TickCount = GetTickCount();
31 ShState->State = NewState;
33 Node->UseTempBackColor =
TRUE;
34 Node->TempBackColor = NewTempBackColor;
36 if (TreeNewHandleForUpdate)
40 #define PH_TICK_SH_STATE_TN(NodeType, ShStateFieldName, StateList, RemoveFunction, HighlightingDuration, TreeNewHandleForUpdate, Invalidate, FullyInvalidated, ...) \
43 ULONG enumerationKey = 0; \
45 BOOLEAN preferFullInvalidate; \
46 HANDLE stateListHandle; \
47 BOOLEAN redrawDisabled = FALSE; \
48 BOOLEAN needsFullInvalidate = FALSE; \
50 if (!StateList || StateList->Count == 0) \
53 tickCount = GetTickCount(); \
54 preferFullInvalidate = StateList->Count > 8; \
56 while (PhEnumPointerList(StateList, &enumerationKey, &node)) \
58 if (PhRoundNumber(tickCount - node->ShStateFieldName.TickCount, 100) < (HighlightingDuration)) \
61 stateListHandle = node->ShStateFieldName.StateListHandle; \
63 if (node->ShStateFieldName.State == NewItemState) \
65 node->ShStateFieldName.State = NormalItemState; \
66 ((PPH_TREENEW_NODE)node)->UseTempBackColor = FALSE; \
69 if (preferFullInvalidate) \
71 needsFullInvalidate = TRUE; \
75 TreeNew_InvalidateNode(TreeNewHandleForUpdate, node); \
79 else if (node->ShStateFieldName.State == RemovingItemState) \
81 if (TreeNewHandleForUpdate) \
83 if (!redrawDisabled) \
85 TreeNew_SetRedraw((TreeNewHandleForUpdate), FALSE); \
86 redrawDisabled = TRUE; \
90 RemoveFunction(node, __VA_ARGS__); \
91 needsFullInvalidate = TRUE; \
94 PhRemoveItemPointerList(StateList, stateListHandle); \
97 if (TreeNewHandleForUpdate) \
100 TreeNew_SetRedraw((TreeNewHandleForUpdate), TRUE); \
101 if (needsFullInvalidate) \
103 InvalidateRect((TreeNewHandleForUpdate), NULL, FALSE); \
104 if (FullyInvalidated) \
105 *((PBOOLEAN)FullyInvalidated) = TRUE; \
115 #define PHPRTLC_NAME 0
116 #define PHPRTLC_PID 1
117 #define PHPRTLC_CPU 2
118 #define PHPRTLC_IOTOTALRATE 3
119 #define PHPRTLC_PRIVATEBYTES 4
120 #define PHPRTLC_USERNAME 5
121 #define PHPRTLC_DESCRIPTION 6
123 #define PHPRTLC_COMPANYNAME 7
124 #define PHPRTLC_VERSION 8
125 #define PHPRTLC_FILENAME 9
126 #define PHPRTLC_COMMANDLINE 10
127 #define PHPRTLC_PEAKPRIVATEBYTES 11
128 #define PHPRTLC_WORKINGSET 12
129 #define PHPRTLC_PEAKWORKINGSET 13
130 #define PHPRTLC_PRIVATEWS 14
131 #define PHPRTLC_SHAREDWS 15
132 #define PHPRTLC_SHAREABLEWS 16
133 #define PHPRTLC_VIRTUALSIZE 17
134 #define PHPRTLC_PEAKVIRTUALSIZE 18
135 #define PHPRTLC_PAGEFAULTS 19
136 #define PHPRTLC_SESSIONID 20
137 #define PHPRTLC_PRIORITYCLASS 21
138 #define PHPRTLC_BASEPRIORITY 22
140 #define PHPRTLC_THREADS 23
141 #define PHPRTLC_HANDLES 24
142 #define PHPRTLC_GDIHANDLES 25
143 #define PHPRTLC_USERHANDLES 26
144 #define PHPRTLC_IORORATE 27
145 #define PHPRTLC_IOWRATE 28
146 #define PHPRTLC_INTEGRITY 29
147 #define PHPRTLC_IOPRIORITY 30
148 #define PHPRTLC_PAGEPRIORITY 31
149 #define PHPRTLC_STARTTIME 32
150 #define PHPRTLC_TOTALCPUTIME 33
151 #define PHPRTLC_KERNELCPUTIME 34
152 #define PHPRTLC_USERCPUTIME 35
153 #define PHPRTLC_VERIFICATIONSTATUS 36
154 #define PHPRTLC_VERIFIEDSIGNER 37
155 #define PHPRTLC_ASLR 38
156 #define PHPRTLC_RELATIVESTARTTIME 39
157 #define PHPRTLC_BITS 40
158 #define PHPRTLC_ELEVATION 41
159 #define PHPRTLC_WINDOWTITLE 42
160 #define PHPRTLC_WINDOWSTATUS 43
161 #define PHPRTLC_CYCLES 44
162 #define PHPRTLC_CYCLESDELTA 45
163 #define PHPRTLC_CPUHISTORY 46
164 #define PHPRTLC_PRIVATEBYTESHISTORY 47
165 #define PHPRTLC_IOHISTORY 48
166 #define PHPRTLC_DEPSTATUS 49
167 #define PHPRTLC_VIRTUALIZED 50
168 #define PHPRTLC_CONTEXTSWITCHES 51
169 #define PHPRTLC_CONTEXTSWITCHESDELTA 52
170 #define PHPRTLC_PAGEFAULTSDELTA 53
172 #define PHPRTLC_IOREADS 54
173 #define PHPRTLC_IOWRITES 55
174 #define PHPRTLC_IOOTHER 56
175 #define PHPRTLC_IOREADBYTES 57
176 #define PHPRTLC_IOWRITEBYTES 58
177 #define PHPRTLC_IOOTHERBYTES 59
178 #define PHPRTLC_IOREADSDELTA 60
179 #define PHPRTLC_IOWRITESDELTA 61
180 #define PHPRTLC_IOOTHERDELTA 62
182 #define PHPRTLC_OSCONTEXT 63
183 #define PHPRTLC_PAGEDPOOL 64
184 #define PHPRTLC_PEAKPAGEDPOOL 65
185 #define PHPRTLC_NONPAGEDPOOL 66
186 #define PHPRTLC_PEAKNONPAGEDPOOL 67
187 #define PHPRTLC_MINIMUMWORKINGSET 68
188 #define PHPRTLC_MAXIMUMWORKINGSET 69
189 #define PHPRTLC_PRIVATEBYTESDELTA 70
190 #define PHPRTLC_SUBSYSTEM 71
191 #define PHPRTLC_PACKAGENAME 72
192 #define PHPRTLC_APPID 73
193 #define PHPRTLC_DPIAWARENESS 74
194 #define PHPRTLC_CFGUARD 75
196 #define PHPRTLC_MAXIMUM 76
197 #define PHPRTLC_IOGROUP_COUNT 9
199 #define PHPN_WSCOUNTERS 0x1
200 #define PHPN_GDIUSERHANDLES 0x2
201 #define PHPN_IOPAGEPRIORITY 0x4
202 #define PHPN_WINDOW 0x8
203 #define PHPN_DEPSTATUS 0x10
204 #define PHPN_TOKEN 0x20
205 #define PHPN_OSCONTEXT 0x40
206 #define PHPN_QUOTALIMITS 0x80
207 #define PHPN_IMAGE 0x100
208 #define PHPN_APPID 0x200
209 #define PHPN_DPIAWARENESS 0x400
366 _In_ PPH_PROCESS_NODE ProcessNode
374 _In_ PPH_PROCESS_NODE ProcessNode
395 _Out_ PULONG NumberOfProcesses
423 _In_ PPH_PROCESS_NODE ProcessNode
428 _In_ PPH_PROCESS_NODE *ProcessNodes,
429 _In_ ULONG NumberOfProcessNodes
433 _In_ HWND TreeListHandle,
434 _In_ ULONG NumberOfNodes,
456 #define PHSVTLC_NAME 0
457 #define PHSVTLC_DISPLAYNAME 1
458 #define PHSVTLC_TYPE 2
459 #define PHSVTLC_STATUS 3
460 #define PHSVTLC_STARTTYPE 4
461 #define PHSVTLC_PID 5
463 #define PHSVTLC_BINARYPATH 6
464 #define PHSVTLC_ERRORCONTROL 7
465 #define PHSVTLC_GROUP 8
466 #define PHSVTLC_DESCRIPTION 9
468 #define PHSVTLC_MAXIMUM 10
470 #define PHSN_CONFIG 0x1
471 #define PHSN_DESCRIPTION 0x2
539 _In_ PPH_SERVICE_NODE ServiceNode
547 _In_ PPH_SERVICE_NODE ServiceNode
568 _Out_ PULONG NumberOfServices
582 _In_ PPH_SERVICE_NODE ServiceNode
599 #define PHNETLC_PROCESS 0
600 #define PHNETLC_LOCALADDRESS 1
601 #define PHNETLC_LOCALPORT 2
602 #define PHNETLC_REMOTEADDRESS 3
603 #define PHNETLC_REMOTEPORT 4
604 #define PHNETLC_PROTOCOL 5
605 #define PHNETLC_STATE 6
606 #define PHNETLC_OWNER 7
607 #define PHNETLC_TIMESTAMP 8
608 #define PHNETLC_MAXIMUM 9
673 _In_ PPH_NETWORK_NODE NetworkNode
677 _In_ PPH_NETWORK_NODE NetworkNode
690 _Out_ PULONG NumberOfNetworkItems
698 _In_ PPH_NETWORK_NODE NetworkNode
714 #define PHTHTLC_TID 0
715 #define PHTHTLC_CPU 1
716 #define PHTHTLC_CYCLESDELTA 2
717 #define PHTHTLC_STARTADDRESS 3
718 #define PHTHTLC_PRIORITY 4
719 #define PHTHTLC_SERVICE 5
721 #define PHTHTLC_MAXIMUM 6
764 _In_ HWND ParentWindowHandle,
765 _In_ HWND TreeNewHandle,
766 _Out_ PPH_THREAD_LIST_CONTEXT Context
770 _In_ PPH_THREAD_LIST_CONTEXT Context
774 _Inout_ PPH_THREAD_LIST_CONTEXT Context
778 _Inout_ PPH_THREAD_LIST_CONTEXT Context
782 _Inout_ PPH_THREAD_LIST_CONTEXT Context,
784 _In_ BOOLEAN FirstRun
788 _In_ PPH_THREAD_LIST_CONTEXT Context,
793 _In_ PPH_THREAD_LIST_CONTEXT Context,
794 _In_ PPH_THREAD_NODE ThreadNode
798 _In_ PPH_THREAD_LIST_CONTEXT Context,
799 _In_ PPH_THREAD_NODE ThreadNode
803 _In_ PPH_THREAD_LIST_CONTEXT Context
807 _In_ PPH_THREAD_LIST_CONTEXT Context
811 _In_ PPH_THREAD_LIST_CONTEXT Context,
813 _Out_ PULONG NumberOfThreads
817 _In_ PPH_THREAD_LIST_CONTEXT Context
824 #define PHMOTLC_NAME 0
825 #define PHMOTLC_BASEADDRESS 1
826 #define PHMOTLC_SIZE 2
827 #define PHMOTLC_DESCRIPTION 3
829 #define PHMOTLC_COMPANYNAME 4
830 #define PHMOTLC_VERSION 5
831 #define PHMOTLC_FILENAME 6
833 #define PHMOTLC_TYPE 7
834 #define PHMOTLC_LOADCOUNT 8
835 #define PHMOTLC_VERIFICATIONSTATUS 9
836 #define PHMOTLC_VERIFIEDSIGNER 10
837 #define PHMOTLC_ASLR 11
838 #define PHMOTLC_TIMESTAMP 12
839 #define PHMOTLC_CFGUARD 13
840 #define PHMOTLC_LOADTIME 14
841 #define PHMOTLC_LOADREASON 15
843 #define PHMOTLC_MAXIMUM 16
887 _In_ HWND ParentWindowHandle,
888 _In_ HWND TreeNewHandle,
889 _Out_ PPH_MODULE_LIST_CONTEXT Context
893 _In_ PPH_MODULE_LIST_CONTEXT Context
897 _Inout_ PPH_MODULE_LIST_CONTEXT Context
901 _Inout_ PPH_MODULE_LIST_CONTEXT Context
905 _Inout_ PPH_MODULE_LIST_CONTEXT Context,
911 _In_ PPH_MODULE_LIST_CONTEXT Context,
916 _In_ PPH_MODULE_LIST_CONTEXT Context,
917 _In_ PPH_MODULE_NODE ModuleNode
921 _In_ PPH_MODULE_LIST_CONTEXT Context,
922 _In_ PPH_MODULE_NODE ModuleNode
926 _In_ PPH_MODULE_LIST_CONTEXT Context
930 _In_ PPH_MODULE_LIST_CONTEXT Context
934 _In_ PPH_MODULE_LIST_CONTEXT Context,
936 _Out_ PULONG NumberOfModules
940 _In_ PPH_MODULE_LIST_CONTEXT Context
947 #define PHHNTLC_TYPE 0
948 #define PHHNTLC_NAME 1
949 #define PHHNTLC_HANDLE 2
951 #define PHHNTLC_OBJECTADDRESS 3
952 #define PHHNTLC_ATTRIBUTES 4
953 #define PHHNTLC_GRANTEDACCESS 5
954 #define PHHNTLC_GRANTEDACCESSSYMBOLIC 6
955 #define PHHNTLC_ORIGINALNAME 7
956 #define PHHNTLC_FILESHAREACCESS 8
958 #define PHHNTLC_MAXIMUM 9
996 _In_ HWND ParentWindowHandle,
997 _In_ HWND TreeNewHandle,
998 _Out_ PPH_HANDLE_LIST_CONTEXT Context
1002 _In_ PPH_HANDLE_LIST_CONTEXT Context
1006 _Inout_ PPH_HANDLE_LIST_CONTEXT Context
1010 _Inout_ PPH_HANDLE_LIST_CONTEXT Context
1014 _Inout_ PPH_HANDLE_LIST_CONTEXT Context,
1015 _In_ BOOLEAN HideUnnamedHandles
1019 _Inout_ PPH_HANDLE_LIST_CONTEXT Context,
1025 _In_ PPH_HANDLE_LIST_CONTEXT Context,
1030 _In_ PPH_HANDLE_LIST_CONTEXT Context,
1031 _In_ PPH_HANDLE_NODE HandleNode
1035 _In_ PPH_HANDLE_LIST_CONTEXT Context,
1036 _In_ PPH_HANDLE_NODE HandleNode
1040 _In_ PPH_HANDLE_LIST_CONTEXT Context
1044 _In_ PPH_HANDLE_LIST_CONTEXT Context
1048 _In_ PPH_HANDLE_LIST_CONTEXT Context,
1050 _Out_ PULONG NumberOfHandles
1054 _In_ PPH_HANDLE_LIST_CONTEXT Context
1061 #define PHMMTLC_BASEADDRESS 0
1062 #define PHMMTLC_TYPE 1
1063 #define PHMMTLC_SIZE 2
1064 #define PHMMTLC_PROTECTION 3
1065 #define PHMMTLC_USE 4
1066 #define PHMMTLC_TOTALWS 5
1067 #define PHMMTLC_PRIVATEWS 6
1068 #define PHMMTLC_SHAREABLEWS 7
1069 #define PHMMTLC_SHAREDWS 8
1070 #define PHMMTLC_LOCKEDWS 9
1071 #define PHMMTLC_COMMITTED 10
1072 #define PHMMTLC_PRIVATE 11
1074 #define PHMMTLC_MAXIMUM 12
1122 _In_ HWND ParentWindowHandle,
1123 _In_ HWND TreeNewHandle,
1124 _Out_ PPH_MEMORY_LIST_CONTEXT Context
1128 _In_ PPH_MEMORY_LIST_CONTEXT Context
1132 _Inout_ PPH_MEMORY_LIST_CONTEXT Context
1136 _Inout_ PPH_MEMORY_LIST_CONTEXT Context
1140 _Inout_ PPH_MEMORY_LIST_CONTEXT Context,
1141 _In_ BOOLEAN HideFreeRegions
1145 _Inout_ PPH_MEMORY_LIST_CONTEXT Context,
1150 _In_ PPH_MEMORY_LIST_CONTEXT Context,
1151 _In_ PPH_MEMORY_NODE MemoryNode
1155 _In_ PPH_MEMORY_LIST_CONTEXT Context
1159 _In_ PPH_MEMORY_LIST_CONTEXT Context,
1160 _Out_ PPH_MEMORY_NODE **MemoryNodes,
1161 _Out_ PULONG NumberOfMemoryNodes
1165 _In_ PPH_MEMORY_LIST_CONTEXT Context