mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:15:39 +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 nPerformancePageWidth;
|
||||||
static int nPerformancePageHeight;
|
static int nPerformancePageHeight;
|
||||||
|
static int lastX, lastY;
|
||||||
static HANDLE hPerformancePageEvent = NULL; /* When this event becomes signaled then we refresh the performance page */
|
static HANDLE hPerformancePageEvent = NULL; /* When this event becomes signaled then we refresh the performance page */
|
||||||
DWORD WINAPI PerformancePageRefreshThread(void *lpParameter);
|
DWORD WINAPI PerformancePageRefreshThread(void *lpParameter);
|
||||||
|
|
||||||
|
@ -266,8 +267,6 @@ LRESULT CALLBACK PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam,
|
||||||
AdjustControlPostion(hPerformancePageTotalsProcessCountEdit, hDlg, 0, nYDifference);
|
AdjustControlPostion(hPerformancePageTotalsProcessCountEdit, hDlg, 0, nYDifference);
|
||||||
AdjustControlPostion(hPerformancePageTotalsThreadCountEdit, hDlg, 0, nYDifference);
|
AdjustControlPostion(hPerformancePageTotalsThreadCountEdit, hDlg, 0, nYDifference);
|
||||||
|
|
||||||
static int lastX, lastY;
|
|
||||||
|
|
||||||
nXDifference += lastX;
|
nXDifference += lastX;
|
||||||
nYDifference += lastY;
|
nYDifference += lastY;
|
||||||
lastX = lastY = 0;
|
lastX = lastY = 0;
|
||||||
|
@ -315,6 +314,9 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
||||||
ULONG CommitChargeLimit;
|
ULONG CommitChargeLimit;
|
||||||
ULONG CommitChargePeak;
|
ULONG CommitChargePeak;
|
||||||
|
|
||||||
|
ULONG CpuUsage;
|
||||||
|
ULONG CpuKernelUsage;
|
||||||
|
|
||||||
ULONG KernelMemoryTotal;
|
ULONG KernelMemoryTotal;
|
||||||
ULONG KernelMemoryPaged;
|
ULONG KernelMemoryPaged;
|
||||||
ULONG KernelMemoryNonPaged;
|
ULONG KernelMemoryNonPaged;
|
||||||
|
@ -340,6 +342,9 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
||||||
{
|
{
|
||||||
DWORD dwWaitVal;
|
DWORD dwWaitVal;
|
||||||
|
|
||||||
|
int nBarsUsed1;
|
||||||
|
int nBarsUsed2;
|
||||||
|
|
||||||
/* Wait on the event */
|
/* Wait on the event */
|
||||||
dwWaitVal = WaitForSingleObject(hPerformancePageEvent, INFINITE);
|
dwWaitVal = WaitForSingleObject(hPerformancePageEvent, INFINITE);
|
||||||
|
|
||||||
|
@ -413,16 +418,6 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
||||||
InvalidateRect(hPerformancePageCpuUsageGraph, NULL, FALSE);
|
InvalidateRect(hPerformancePageCpuUsageGraph, NULL, FALSE);
|
||||||
InvalidateRect(hPerformancePageMemUsageGraph, 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
|
* Get the CPU usage
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue