Author: spetreolle
Date: Sun Jun 28 02:05:53 2009
New Revision: 41647
URL:
http://svn.reactos.org/svn/reactos?rev=41647&view=rev
Log:
Taskmgr didn't build without compilation units,
moving PerfDataGet to perfdata functions fixes it.
Modified:
trunk/reactos/base/applications/taskmgr/perfdata.c
trunk/reactos/base/applications/taskmgr/perfdata.h
trunk/reactos/base/applications/taskmgr/procpage.c
Modified: trunk/reactos/base/applications/taskmgr/perfdata.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/perfdata.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/perfdata.c [iso-8859-1] Sun Jun 28 02:05:53
2009
@@ -901,3 +901,18 @@
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;
+}
+
Modified: trunk/reactos/base/applications/taskmgr/perfdata.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/perfdata.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/perfdata.h [iso-8859-1] Sun Jun 28 02:05:53
2009
@@ -60,6 +60,7 @@
void PerfDataUninitialize(void);
void PerfDataRefresh(void);
+BOOL PerfDataGet(ULONG Index, PPERFDATA *lppData);
ULONG PerfDataGetProcessCount(void);
ULONG PerfDataGetProcessorUsage(void);
ULONG PerfDataGetProcessorSystemUsage(void);
Modified: trunk/reactos/base/applications/taskmgr/procpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] Sun Jun 28 02:05:53
2009
@@ -52,7 +52,6 @@
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 @@
}
}
-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;