124 ULONG CpuKernelUsage;
165 nBars = ((rcClient.
bottom - rcClient.
top) - 25) / 3;
166 nBarsUsed = (nBars * CpuUsage) / 100;
167 if ((CpuUsage) && (nBarsUsed == 0))
176 nBarsUsedKernel = (nBars * CpuKernelUsage) / 100;
186 rcBarLeft.
left = ((rcClient.
right - rcClient.
left) - 33) / 2;
188 rcBarRight.
left = rcBarLeft.
left + 17;
190 rcBarLeft.
top = rcBarRight.
top = 5;
193 if (nBarsUsed < 0) nBarsUsed = 0;
194 if (nBarsUsed > nBars) nBarsUsed = nBars;
196 if (nBarsFree < 0) nBarsFree = 0;
197 if (nBarsFree > nBars) nBarsFree = nBars;
199 if (nBarsUsedKernel < 0) nBarsUsedKernel = 0;
200 if (nBarsUsedKernel > nBars) nBarsUsedKernel = nBars;
205 for (
i=0;
i<nBarsFree;
i++)
239 for (
i=0;
i<nBarsUsed;
i++)
241 if (nBarsUsed > 5000) nBarsUsed = 5000;
263 for (
i=0;
i<nBarsUsedKernel;
i++)
312 if (CommitChargeTotal > 1024)
330 nBars = ((rcClient.
bottom - rcClient.
top) - 25) / 3;
331 if (CommitChargeLimit)
332 nBarsUsed = (nBars * (
int)((CommitChargeTotal * 100) / CommitChargeLimit)) / 100;
333 nBarsFree = nBars - nBarsUsed;
335 if (nBarsUsed < 0) nBarsUsed = 0;
336 if (nBarsUsed > nBars) nBarsUsed = nBars;
338 if (nBarsFree < 0) nBarsFree = 0;
339 if (nBarsFree > nBars) nBarsFree = nBars;
344 rcBarLeft.
left = ((rcClient.
right - rcClient.
left) - 33) / 2;
346 rcBarRight.
left = rcBarLeft.
left + 17;
348 rcBarLeft.
top = rcBarRight.
top = 5;
354 for (
i=0;
i<nBarsFree;
i++)
369 for (
i=0;
i<nBarsUsed;
i++)
#define IDC_MEM_USAGE_HISTORY_GRAPH
#define IDC_MEM_USAGE_GRAPH
#define IDC_CPU_USAGE_GRAPH
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
INT_PTR CALLBACK Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
void Graph_DrawMemUsageHistoryGraph(HDC hDC, HWND hWnd)
void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
ULONG PerfDataGetProcessorSystemUsage(void)
ULONG PerfDataGetProcessorUsage(void)
ULONG PerfDataGetCommitChargeLimitK(void)
ULONG PerfDataGetCommitChargeTotalK(void)
TASKMANAGER_SETTINGS TaskManagerSettings
void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
#define GetWindowLongPtrW
#define WM_CAPTURECHANGED
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
#define WM_NCRBUTTONDBLCLK
#define WM_NCLBUTTONDBLCLK
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
#define WM_NCMBUTTONDBLCLK
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)