175 fmt.clrBack =
RGB(0, 0, 0);
176 fmt.clrGrid =
RGB(0, 128, 64);
177 fmt.clrPlot0 =
RGB(0, 255, 0);
178 fmt.clrPlot1 =
RGB(255, 0, 0);
179 fmt.GridCellWidth =
fmt.GridCellHeight = 12;
188 fmt.clrPlot0 =
RGB(255, 255, 0);
189 fmt.clrPlot1 =
RGB(100, 255, 255);
276 nXDifference +=
lastX;
277 nYDifference +=
lastY;
279 if (nXDifference % 2) {
280 if (nXDifference > 0) {
288 if (nYDifference % 2) {
289 if (nYDifference > 0) {
static HANDLE hPerformanceThread
INT_PTR CALLBACK Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
#define IDC_PHYSICAL_MEMORY_TOTAL
HWND hPerformancePageCpuUsageHistoryFrame
#define IDC_PHYSICAL_MEMORY_SYSTEM_CACHE
HWND hPerformancePageTotalsHandleCountEdit
HWND hPerformancePageKernelMemoryPagedEdit
#define IDS_TOTALS_PROCESS_COUNT
HWND hPerformancePageMemUsageGraph
#define IDC_MEM_USAGE_FRAME
#define IDC_CPU_USAGE_FRAME
#define IDC_KERNEL_MEMORY_NONPAGED
void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLORREF clrBottomRight)
#define IDC_COMMIT_CHARGE_TOTAL
HDC WINAPI GetDC(_In_opt_ HWND)
static DWORD dwPerformanceThread
HWND hPerformancePageCommitChargeFrame
HWND hPerformancePageMemUsageHistoryGraph
HWND hPerformancePageMemUsageHistoryFrame
TM_GRAPH_CONTROL PerformancePageMemUsageHistoryGraph
HWND hPerformancePageCommitChargePeakEdit
#define IDC_COMMIT_CHARGE_PEAK
HWND hPerformancePageKernelMemoryNonPagedEdit
#define IDC_PHYSICAL_MEMORY_FRAME
static int nPerformancePageWidth
#define IDC_MEMORY_USAGE_HISTORY_FRAME
#define IDC_KERNEL_MEMORY_PAGED
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
DWORD EndLocalThread(HANDLE *hThread, DWORD dwThread)
#define IDS_PHYSICAL_MEMORY_TOTAL
INT_PTR CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
#define IDC_PHYSICAL_MEMORY_AVAILABLE
#define IDS_PHYSICAL_MEMORY_AVAILABLE
#define IDC_COMMIT_CHARGE_LIMIT
static void AdjustControlPosition(HWND hCntrl, HWND hDlg, int nXDifference, int nYDifference)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define IDS_COMMIT_CHARGE_LIMIT
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
_Out_opt_ int _Out_opt_ int * cy
static void AdjustCntrlPos(int ctrl_id, HWND hDlg, int nXDifference, int nYDifference)
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)
#define IDC_COMMIT_CHARGE_FRAME
#define IDC_CPU_USAGE_HISTORY_FRAME
HWND hPerformancePagePhysicalMemorySystemCacheEdit
BOOL GraphCtrl_Create(PTM_GRAPH_CONTROL inst, HWND hWnd, HWND hParentWnd, PTM_FORMAT fmt)
HWND hPerformancePagePhysicalMemoryFrame
WNDPROC OldGraphCtrlWndProc
void GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
#define IDS_COMMIT_CHARGE_PEAK
static int nPerformancePageHeight
HWND hPerformancePageCommitChargeLimitEdit
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
void AdjustFrameSize(HWND hCntrl, HWND hDlg, int nXDifference, int nYDifference, int pos)
HWND hPerformancePageKernelMemoryFrame
HWND hPerformancePageKernelMemoryTotalEdit
#define IDS_PHYSICAL_MEMORY_SYSTEM_CACHE
HWND hPerformancePageTotalsThreadCountEdit
TM_GRAPH_CONTROL PerformancePageCpuUsageHistoryGraph
HWND hPerformancePageCpuUsageFrame
#define IDS_KERNEL_MEMORY_NONPAGED
#define IDC_TOTALS_PROCESS_COUNT
#define IDC_KERNEL_MEMORY_FRAME
#define IDS_TOTALS_THREAD_COUNT
HWND hPerformancePageCpuUsageGraph
#define IDC_TOTALS_HANDLE_COUNT
#define IDC_CPU_USAGE_HISTORY_GRAPH
HWND hPerformancePageCommitChargeTotalEdit
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
HWND hPerformancePageCpuUsageHistoryGraph
HWND hPerformancePageTotalsProcessCountEdit
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HWND hPerformancePagePhysicalMemoryTotalEdit
#define IDC_TOTALS_THREAD_COUNT
#define IDC_CPU_USAGE_GRAPH
HWND hPerformancePageMemUsageFrame
HWND hPerformancePageTotalsFrame
#define IDC_MEM_USAGE_GRAPH
#define IDS_COMMIT_CHARGE_TOTAL
#define IDC_MEM_USAGE_HISTORY_GRAPH
TASKMANAGER_SETTINGS TaskManagerSettings
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SetWindowLongPtrW
HWND hPerformancePagePhysicalMemoryAvailableEdit
DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
#define IDC_KERNEL_MEMORY_TOTAL
#define IDS_KERNEL_MEMORY_PAGED
#define IDS_KERNEL_MEMORY_TOTAL
#define SWP_NOOWNERZORDER
#define IDS_TOTALS_HANDLE_COUNT