Taskmgr didn't build without compilation units,
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 27 Jun 2009 22:05:53 +0000 (22:05 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 27 Jun 2009 22:05:53 +0000 (22:05 +0000)
moving PerfDataGet to perfdata functions fixes it.

svn path=/trunk/; revision=41647

reactos/base/applications/taskmgr/perfdata.c
reactos/base/applications/taskmgr/perfdata.h
reactos/base/applications/taskmgr/procpage.c

index c8176a4..f9f52bf 100644 (file)
@@ -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;
+}
+
index de26d6a..6b31394 100644 (file)
@@ -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);
index 595530c..8400862 100644 (file)
@@ -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;