29 static HWND DiskDialog;
31 static HWND DiskGraphHandle;
33 static HWND DiskPanel;
36 static HWND NetworkDialog;
38 static HWND NetworkGraphHandle;
40 static HWND NetworkPanel;
53 DiskSection = Pointers->CreateSection(§ion);
60 NetworkSection = Pointers->CreateSection(§ion);
66 _In_opt_ PVOID Parameter1,
67 _In_opt_ PVOID Parameter2
107 if (!Section->GraphState.Valid)
117 Section->GraphState.Data1[i] = data1 =
119 Section->GraphState.Data2[i] = data2 =
122 if (max < data1 + data2)
127 if (max < 1024 * 1024)
133 Section->GraphState.Data1,
138 Section->GraphState.Data2,
143 Section->GraphState.Valid =
TRUE;
157 L
"R: %s\nW: %s%s\n%s",
163 getTooltipText->
Text = Section->GraphState.TooltipText->sr;
199 DiskDialog = hwndDlg;
207 ShowWindow(DiskPanel, SW_SHOW);
210 DiskGraphHandle = CreateWindow(
213 WS_VISIBLE | WS_CHILD | WS_BORDER,
243 NMHDR *header = (NMHDR *)lParam;
245 if (header->hwndFrom == DiskGraphHandle)
270 switch (Header->code)
286 if (!DiskGraphState.
Valid)
296 DiskGraphState.
Data1[i] = data1 =
298 DiskGraphState.
Data2[i] = data2 =
301 if (max < data1 + data2)
306 if (max < 1024 * 1024)
312 DiskGraphState.
Data1,
317 DiskGraphState.
Data2,
341 L
"R: %s\nW: %s%s\n%s",
384 InvalidateRect(DiskGraphHandle, NULL,
FALSE);
427 HandleToUlong(maxProcessRecord->
ProcessId)
432 return maxUsageString;
438 _In_opt_ PVOID Parameter1,
439 _In_opt_ PVOID Parameter2
449 NetworkDialog = NULL;
479 if (!Section->GraphState.Valid)
489 Section->GraphState.Data1[i] = data1 =
491 Section->GraphState.Data2[i] = data2 =
494 if (max < data1 + data2)
499 if (max < 1024 * 1024)
505 Section->GraphState.Data1,
510 Section->GraphState.Data2,
515 Section->GraphState.Valid =
TRUE;
522 ULONG64 networkReceive;
529 L
"R: %s\nS: %s%s\n%s",
535 getTooltipText->
Text = Section->GraphState.TooltipText->sr;
571 NetworkDialog = hwndDlg;
579 ShowWindow(NetworkPanel, SW_SHOW);
582 NetworkGraphHandle = CreateWindow(
585 WS_VISIBLE | WS_CHILD | WS_BORDER,
615 NMHDR *header = (NMHDR *)lParam;
617 if (header->hwndFrom == NetworkGraphHandle)
642 switch (Header->code)
658 if (!NetworkGraphState.
Valid)
668 NetworkGraphState.
Data1[i] = data1 =
670 NetworkGraphState.
Data2[i] = data2 =
673 if (max < data1 + data2)
678 if (max < 1024 * 1024)
684 NetworkGraphState.
Data1,
689 NetworkGraphState.
Data2,
706 ULONG64 networkReceive;
713 L
"R: %s\nS: %s%s\n%s",
756 InvalidateRect(NetworkGraphHandle, NULL,
FALSE);
799 HandleToUlong(maxProcessRecord->
ProcessId)
804 return maxUsageString;