115{
124 ULONG CpuKernelUsage;
125 int nBars;
126 int nBarsUsed;
127
128 int nBarsUsedKernel;
129
130 int nBarsFree;
131
133
134
135
136
138
139
140
141
143
144
145
146
148
150
151
152
153
154 rcText = rcClient;
161
162
163
164
165 nBars = ((rcClient.
bottom - rcClient.
top) - 25) / 3;
166 nBarsUsed = (nBars * CpuUsage) / 100;
167 if ((CpuUsage) && (nBarsUsed == 0))
168 {
169 nBarsUsed = 1;
170 }
172
174 {
176 nBarsUsedKernel = (nBars * CpuKernelUsage) / 100;
177 }
178 else
179 {
180 nBarsUsedKernel = 0;
181 }
182
183
184
185
186 rcBarLeft.
left = ((rcClient.
right - rcClient.
left) - 33) / 2;
188 rcBarRight.
left = rcBarLeft.
left + 17;
190 rcBarLeft.
top = rcBarRight.
top = 5;
192
193 if (nBarsUsed < 0) nBarsUsed = 0;
194 if (nBarsUsed > nBars) nBarsUsed = nBars;
195
196 if (nBarsFree < 0) nBarsFree = 0;
197 if (nBarsFree > nBars) nBarsFree = nBars;
198
199 if (nBarsUsedKernel < 0) nBarsUsedKernel = 0;
200 if (nBarsUsedKernel > nBars) nBarsUsedKernel = nBars;
201
202
203
204
205 for (
i=0;
i<nBarsFree;
i++)
206 {
209
212
215 }
216
217
218
219
222 {
224
227
230
233 }
234 }
236
237
238
239 for (
i=0;
i<nBarsUsed;
i++)
240 {
241 if (nBarsUsed > 5000) nBarsUsed = 5000;
242
245
248
251 }
252
253
254
255
256
259
262
263 for (
i=0;
i<nBarsUsedKernel;
i++)
264 {
267
270
273 }
274
276}
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
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)
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)
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)