99{
101
103 {
107#ifdef RUN_PERF_PAGE
109#endif
110 break;
111
113 {
116
117
121
122
124
125
126
127
132
137
150
155
156
157 fmt.clrBack =
RGB(0, 0, 0);
158 fmt.clrGrid =
RGB(0, 128, 64);
159 fmt.clrPlot0 =
RGB(0, 255, 0);
160 fmt.clrPlot1 =
RGB(255, 0, 0);
161 fmt.GridCellWidth =
fmt.GridCellHeight = 12;
164 if (!bGraph)
165 {
168 }
169
170 fmt.clrPlot0 =
RGB(255, 255, 0);
171 fmt.clrPlot1 =
RGB(100, 255, 255);
174 if (!bGraph)
175 {
178 }
179
180
181#ifdef RUN_PERF_PAGE
183#endif
184
185
186
187
193 }
194
196 break;
197
199 {
201 int nXDifference;
202 int nYDifference;
203
205 return 0;
206
213
214
231
244
245 nXDifference +=
lastX;
246 nYDifference +=
lastY;
248 if (nXDifference % 2)
249 {
250 if (nXDifference > 0)
251 {
252 nXDifference--;
254 }
255 else
256 {
257 nXDifference++;
259 }
260 }
261 if (nYDifference % 2)
262 {
263 if (nYDifference > 0)
264 {
265 nYDifference--;
267 }
268 else
269 {
270 nYDifference++;
272 }
273 }
282 break;
283 }
284 }
285 return 0;
286}
#define IDC_PHYSICAL_MEMORY_AVAILABLE
#define IDC_COMMIT_CHARGE_PEAK
#define IDC_PHYSICAL_MEMORY_TOTAL
#define IDC_KERNEL_MEMORY_TOTAL
#define IDS_KERNEL_MEMORY_NONPAGED
#define IDC_MEMORY_USAGE_HISTORY_FRAME
#define IDS_PHYSICAL_MEMORY_SYSTEM_CACHE
#define IDC_PHYSICAL_MEMORY_FRAME
#define IDS_TOTALS_THREAD_COUNT
#define IDC_MEM_USAGE_HISTORY_GRAPH
#define IDS_COMMIT_CHARGE_PEAK
#define IDC_CPU_USAGE_HISTORY_FRAME
#define IDC_MEM_USAGE_GRAPH
#define IDC_CPU_USAGE_HISTORY_GRAPH
#define IDS_PHYSICAL_MEMORY_AVAILABLE
#define IDS_KERNEL_MEMORY_TOTAL
#define IDS_PHYSICAL_MEMORY_TOTAL
#define IDC_COMMIT_CHARGE_TOTAL
#define IDC_MEM_USAGE_FRAME
#define IDS_KERNEL_MEMORY_PAGED
#define IDS_TOTALS_PROCESS_COUNT
#define IDC_KERNEL_MEMORY_FRAME
#define IDC_TOTALS_HANDLE_COUNT
#define IDC_KERNEL_MEMORY_NONPAGED
#define IDS_COMMIT_CHARGE_TOTAL
#define IDC_COMMIT_CHARGE_LIMIT
#define IDS_TOTALS_HANDLE_COUNT
#define IDC_CPU_USAGE_GRAPH
#define IDC_KERNEL_MEMORY_PAGED
#define IDC_CPU_USAGE_FRAME
#define IDC_TOTALS_PROCESS_COUNT
#define IDS_COMMIT_CHARGE_LIMIT
#define IDC_COMMIT_CHARGE_FRAME
#define IDC_TOTALS_THREAD_COUNT
#define IDC_PHYSICAL_MEMORY_SYSTEM_CACHE
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
INT_PTR CALLBACK Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
WNDPROC OldGraphCtrlWndProc
BOOL GraphCtrl_Create(PTM_GRAPH_CONTROL inst, HWND hWnd, HWND hParentWnd, PTM_FORMAT fmt)
void GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
INT_PTR CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
static HWND hPhysicalMemoryTotalEdit
static HWND hCommitChargeLimitEdit
static HWND hTotalsThreadCountEdit
HWND hPerformancePageMemUsageHistoryGraph
static HWND hKernelMemoryPagedEdit
static int nPerformancePageHeight
HWND hPerformancePageCpuUsageHistoryGraph
TM_GRAPH_CONTROL PerformancePageMemUsageHistoryGraph
static HWND hCpuUsageHistoryFrame
DWORD WINAPI PerformancePageRefreshThread(PVOID Parameter)
static HWND hMemUsageGraph
static HWND hMemUsageHistoryFrame
static void AdjustCntrlPos(int ctrl_id, HWND hDlg, int nXDifference, int nYDifference)
static HWND hCommitChargePeakEdit
static HWND hPhysicalMemoryAvailableEdit
static HWND hTotalsHandleCountEdit
static HWND hCommitChargeTotalEdit
static HWND hCpuUsageGraph
static HWND hKernelMemoryTotalEdit
static HWND hPhysicalMemoryFrame
static HANDLE hPerformanceThread
static HWND hKernelMemoryNonPagedEdit
static int nPerformancePageWidth
void AdjustFrameSize(HWND hCntrl, HWND hDlg, int nXDifference, int nYDifference, int pos)
static DWORD dwPerformanceThread
static void AdjustControlPosition(HWND hCntrl, HWND hDlg, int nXDifference, int nYDifference)
static HWND hCpuUsageFrame
static HWND hCommitChargeFrame
static HWND hMemUsageFrame
static HWND hKernelMemoryFrame
static HWND hTotalsProcessCountEdit
static HWND hPhysicalMemorySystemCacheEdit
_Out_opt_ int _Out_opt_ int * cy
DWORD EndLocalThread(HANDLE *hThread, DWORD dwThread)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define SWP_NOOWNERZORDER
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
#define SetWindowLongPtrW
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)