Commit 25564f9f authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

taskmgr: Make some functions static.

parent 423079eb
...@@ -48,14 +48,14 @@ static int nApplicationPageWidth; ...@@ -48,14 +48,14 @@ static int nApplicationPageWidth;
static int nApplicationPageHeight; static int nApplicationPageHeight;
static HANDLE hApplicationPageEvent = NULL; /* When this event becomes signaled then we refresh the app list */ static HANDLE hApplicationPageEvent = NULL; /* When this event becomes signaled then we refresh the app list */
static BOOL bSortAscending = TRUE; static BOOL bSortAscending = TRUE;
DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter); static DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter);
BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam); static BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam);
void AddOrUpdateHwnd(HWND hWnd, TCHAR *szTitle, HICON hIcon, BOOL bHung); static void AddOrUpdateHwnd(HWND hWnd, TCHAR *szTitle, HICON hIcon, BOOL bHung);
void ApplicationPageUpdate(void); static void ApplicationPageUpdate(void);
void ApplicationPageOnNotify(WPARAM wParam, LPARAM lParam); static void ApplicationPageOnNotify(WPARAM wParam, LPARAM lParam);
void ApplicationPageShowContextMenu1(void); static void ApplicationPageShowContextMenu1(void);
void ApplicationPageShowContextMenu2(void); static void ApplicationPageShowContextMenu2(void);
int CALLBACK ApplicationPageCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort); static int CALLBACK ApplicationPageCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
#if 0 #if 0
void SwitchToThisWindow ( void SwitchToThisWindow (
...@@ -221,7 +221,7 @@ void UpdateApplicationListControlViewSetting(void) ...@@ -221,7 +221,7 @@ void UpdateApplicationListControlViewSetting(void)
RefreshApplicationPage(); RefreshApplicationPage();
} }
DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter) static DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter)
{ {
/* Create the event */ /* Create the event */
hApplicationPageEvent = CreateEvent(NULL, TRUE, TRUE, NULL); hApplicationPageEvent = CreateEvent(NULL, TRUE, TRUE, NULL);
...@@ -257,7 +257,7 @@ DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter) ...@@ -257,7 +257,7 @@ DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter)
} }
} }
BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam) static BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam)
{ {
HICON hIcon; HICON hIcon;
TCHAR szText[260]; TCHAR szText[260];
...@@ -312,7 +312,7 @@ BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam) ...@@ -312,7 +312,7 @@ BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam)
return TRUE; return TRUE;
} }
void AddOrUpdateHwnd(HWND hWnd, TCHAR *szTitle, HICON hIcon, BOOL bHung) static void AddOrUpdateHwnd(HWND hWnd, TCHAR *szTitle, HICON hIcon, BOOL bHung)
{ {
LPAPPLICATION_PAGE_LIST_ITEM pAPLI = NULL; LPAPPLICATION_PAGE_LIST_ITEM pAPLI = NULL;
HIMAGELIST hImageListLarge; HIMAGELIST hImageListLarge;
...@@ -434,7 +434,7 @@ void AddOrUpdateHwnd(HWND hWnd, TCHAR *szTitle, HICON hIcon, BOOL bHung) ...@@ -434,7 +434,7 @@ void AddOrUpdateHwnd(HWND hWnd, TCHAR *szTitle, HICON hIcon, BOOL bHung)
ApplicationPageUpdate(); ApplicationPageUpdate();
} }
void ApplicationPageUpdate(void) static void ApplicationPageUpdate(void)
{ {
/* Enable or disable the "End Task" & "Switch To" buttons */ /* Enable or disable the "End Task" & "Switch To" buttons */
if (ListView_GetSelectedCount(hApplicationPageListCtrl)) if (ListView_GetSelectedCount(hApplicationPageListCtrl))
...@@ -491,7 +491,7 @@ void ApplicationPageUpdate(void) ...@@ -491,7 +491,7 @@ void ApplicationPageUpdate(void)
} }
} }
void ApplicationPageOnNotify(WPARAM wParam, LPARAM lParam) static void ApplicationPageOnNotify(WPARAM wParam, LPARAM lParam)
{ {
int idctrl; int idctrl;
LPNMHDR pnmh; LPNMHDR pnmh;
...@@ -579,7 +579,7 @@ void ApplicationPageOnNotify(WPARAM wParam, LPARAM lParam) ...@@ -579,7 +579,7 @@ void ApplicationPageOnNotify(WPARAM wParam, LPARAM lParam)
} }
void ApplicationPageShowContextMenu1(void) static void ApplicationPageShowContextMenu1(void)
{ {
HMENU hMenu; HMENU hMenu;
HMENU hSubMenu; HMENU hSubMenu;
...@@ -602,7 +602,7 @@ void ApplicationPageShowContextMenu1(void) ...@@ -602,7 +602,7 @@ void ApplicationPageShowContextMenu1(void)
DestroyMenu(hMenu); DestroyMenu(hMenu);
} }
void ApplicationPageShowContextMenu2(void) static void ApplicationPageShowContextMenu2(void)
{ {
HMENU hMenu; HMENU hMenu;
HMENU hSubMenu; HMENU hSubMenu;
...@@ -945,7 +945,7 @@ void ApplicationPage_OnGotoProcess(void) ...@@ -945,7 +945,7 @@ void ApplicationPage_OnGotoProcess(void)
} }
} }
int CALLBACK ApplicationPageCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort) static int CALLBACK ApplicationPageCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
{ {
LPAPPLICATION_PAGE_LIST_ITEM Param1; LPAPPLICATION_PAGE_LIST_ITEM Param1;
LPAPPLICATION_PAGE_LIST_ITEM Param2; LPAPPLICATION_PAGE_LIST_ITEM Param2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment