[taskmgr]

formatting fixes

svn path=/trunk/; revision=61684
This commit is contained in:
Christoph von Wittich 2014-01-19 08:52:21 +00:00
parent abb28f6a28
commit a09ce0f797
3 changed files with 20 additions and 20 deletions

View file

@ -24,10 +24,10 @@
void OnAbout(void)
{
TCHAR szTaskmgr[128];
WCHAR szTaskmgr[128];
HICON taskmgrIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_TASKMANAGER));
LoadString(hInst, IDS_APP_TITLE, szTaskmgr, sizeof(szTaskmgr)/sizeof(TCHAR));
ShellAbout(hMainWnd, szTaskmgr, 0, taskmgrIcon);
LoadStringW(hInst, IDS_APP_TITLE, szTaskmgr, sizeof(szTaskmgr)/sizeof(WCHAR));
ShellAboutW(hMainWnd, szTaskmgr, 0, taskmgrIcon);
DeleteObject(taskmgrIcon);
}

View file

@ -76,7 +76,7 @@ ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
rcItem.left = LVIR_BOUNDS;
SendMessageW(hWnd, LVM_GETITEMRECT, ListView_GetItemCount(hWnd) - 1, (LPARAM)&rcItem);
rcClip.bottom = rcItem.bottom;
rcClip.right = rcItem.right;
rcClip.right = rcItem.right;
rcItem.left = LVIR_ICON;
SendMessageW(hWnd, LVM_GETITEMRECT, 0, (LPARAM)&rcItem);
rcClip.left = rcItem.right;

View file

@ -470,25 +470,25 @@ void UpdateProcesses()
BOOL ProcessRunning(ULONG ProcessId)
{
HANDLE hProcess;
DWORD exitCode;
HANDLE hProcess;
DWORD exitCode;
if (ProcessId == 0) {
return TRUE;
}
hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ProcessId);
if (hProcess == NULL) {
return FALSE;
}
if (ProcessId == 0) {
return TRUE;
}
if (GetExitCodeProcess(hProcess, &exitCode)) {
CloseHandle(hProcess);
return (exitCode == STILL_ACTIVE);
}
hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ProcessId);
if (hProcess == NULL) {
return FALSE;
}
CloseHandle(hProcess);
return FALSE;
if (GetExitCodeProcess(hProcess, &exitCode)) {
CloseHandle(hProcess);
return (exitCode == STILL_ACTIVE);
}
CloseHandle(hProcess);
return FALSE;
}
void AddProcess(ULONG Index)