mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 19:35:44 +00:00
Fix building for building on both Mingw and MS_VC.
svn path=/trunk/; revision=10982
This commit is contained in:
parent
dab159a4de
commit
c92d7b8a36
1 changed files with 7 additions and 12 deletions
|
@ -67,6 +67,7 @@ HWND hPerformancePageTotalsThreadCountEdit; /* Total Threads Edit Control */
|
|||
|
||||
static int nPerformancePageWidth;
|
||||
static int nPerformancePageHeight;
|
||||
static int lastX, lastY;
|
||||
static HANDLE hPerformancePageEvent = NULL; /* When this event becomes signaled then we refresh the performance page */
|
||||
DWORD WINAPI PerformancePageRefreshThread(void *lpParameter);
|
||||
|
||||
|
@ -266,8 +267,6 @@ LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam,
|
|||
AdjustControlPostion(hPerformancePageTotalsProcessCountEdit, hDlg, 0, nYDifference);
|
||||
AdjustControlPostion(hPerformancePageTotalsThreadCountEdit, hDlg, 0, nYDifference);
|
||||
|
||||
static int lastX, lastY;
|
||||
|
||||
nXDifference += lastX;
|
||||
nYDifference += lastY;
|
||||
lastX = lastY = 0;
|
||||
|
@ -315,6 +314,9 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
|||
ULONG CommitChargeLimit;
|
||||
ULONG CommitChargePeak;
|
||||
|
||||
ULONG CpuUsage;
|
||||
ULONG CpuKernelUsage;
|
||||
|
||||
ULONG KernelMemoryTotal;
|
||||
ULONG KernelMemoryPaged;
|
||||
ULONG KernelMemoryNonPaged;
|
||||
|
@ -340,6 +342,9 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
|||
{
|
||||
DWORD dwWaitVal;
|
||||
|
||||
int nBarsUsed1;
|
||||
int nBarsUsed2;
|
||||
|
||||
/* Wait on the event */
|
||||
dwWaitVal = WaitForSingleObject(hPerformancePageEvent, INFINITE);
|
||||
|
||||
|
@ -413,16 +418,6 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
|||
InvalidateRect(hPerformancePageCpuUsageGraph, NULL, FALSE);
|
||||
InvalidateRect(hPerformancePageMemUsageGraph, NULL, FALSE);
|
||||
|
||||
|
||||
ULONG CpuUsage;
|
||||
ULONG CpuKernelUsage;
|
||||
ULONGLONG CommitChargeTotal;
|
||||
ULONGLONG CommitChargeLimit;
|
||||
ULONG PhysicalMemoryTotal;
|
||||
ULONG PhysicalMemoryAvailable;
|
||||
int nBarsUsed1;
|
||||
int nBarsUsed2;
|
||||
|
||||
/*
|
||||
* Get the CPU usage
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue