mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
Taskmgr didn't build without compilation units,
moving PerfDataGet to perfdata functions fixes it. svn path=/trunk/; revision=41647
This commit is contained in:
@@ -901,3 +901,18 @@ ULONG PerfDataGetTotalThreadCount(void)
|
||||
|
||||
return ThreadCount;
|
||||
}
|
||||
|
||||
BOOL PerfDataGet(ULONG Index, PPERFDATA *lppData)
|
||||
{
|
||||
BOOL bSuccessful = FALSE;
|
||||
|
||||
EnterCriticalSection(&PerfDataCriticalSection);
|
||||
if (Index < ProcessCount)
|
||||
{
|
||||
*lppData = pPerfData + Index;
|
||||
bSuccessful = TRUE;
|
||||
}
|
||||
LeaveCriticalSection(&PerfDataCriticalSection);
|
||||
return bSuccessful;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ BOOL PerfDataInitialize(void);
|
||||
void PerfDataUninitialize(void);
|
||||
void PerfDataRefresh(void);
|
||||
|
||||
BOOL PerfDataGet(ULONG Index, PPERFDATA *lppData);
|
||||
ULONG PerfDataGetProcessCount(void);
|
||||
ULONG PerfDataGetProcessorUsage(void);
|
||||
ULONG PerfDataGetProcessorSystemUsage(void);
|
||||
|
||||
@@ -52,7 +52,6 @@ void gethmsfromlargeint(LARGE_INTEGER largeint, DWORD *dwHours, DWORD *dwMinutes
|
||||
void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam);
|
||||
void CommaSeparateNumberString(LPWSTR strNumber, int nMaxCount);
|
||||
void ProcessPageShowContextMenu(DWORD dwProcessId);
|
||||
BOOL PerfDataGet(ULONG Index, PPERFDATA *lppData);
|
||||
BOOL PerfDataGetText(ULONG Index, ULONG ColumnIndex, LPTSTR lpText, int nMaxCount);
|
||||
DWORD WINAPI ProcessPageRefreshThread(void *lpParameter);
|
||||
|
||||
@@ -454,20 +453,6 @@ void UpdateProcesses()
|
||||
}
|
||||
}
|
||||
|
||||
BOOL PerfDataGet(ULONG Index, PPERFDATA *lppData)
|
||||
{
|
||||
BOOL bSuccessful = FALSE;
|
||||
|
||||
EnterCriticalSection(&PerfDataCriticalSection);
|
||||
if (Index < ProcessCount)
|
||||
{
|
||||
*lppData = pPerfData + Index;
|
||||
bSuccessful = TRUE;
|
||||
}
|
||||
LeaveCriticalSection(&PerfDataCriticalSection);
|
||||
return bSuccessful;
|
||||
}
|
||||
|
||||
void AddProcess(ULONG Index)
|
||||
{
|
||||
LPPROCESS_PAGE_LIST_ITEM pData;
|
||||
|
||||
Reference in New Issue
Block a user