mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[taskmgr]
formatting fixes svn path=/trunk/; revision=61684
This commit is contained in:
parent
abb28f6a28
commit
a09ce0f797
3 changed files with 20 additions and 20 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue