Changeset 533 for trunk/dll/killproc.c
- Timestamp:
- Nov 4, 2006, 10:07:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/killproc.c
r451 r533 12 12 14 Jul 06 SHL Use Runtime_Error 13 13 29 Jul 06 SHL Use xfgets 14 03 Nov 06 SHL Renames 15 03 Nov 06 SHL Count thread usage 14 16 15 17 ***********************************************************************/ … … 37 39 static PSZ pszSrcFile = __FILE__; 38 40 39 #pragma alloc_text(KILLPROC,FillKillList ,FillKillList2,GetDosPgmName,KillDlgProc)41 #pragma alloc_text(KILLPROC,FillKillListThread,FillKillListThread2,GetDosPgmName,KillDlgProc) 40 42 41 43 CHAR *GetDosPgmName (PID pid,CHAR *string) … … 69 71 70 72 71 VOID FillKillList2 (VOID *arg)73 static VOID FillKillListThread2 (VOID *arg) 72 74 { 73 75 HWND hwnd = *(HWND *)arg; … … 83 85 thmq = WinCreateMsgQueue(thab,0); 84 86 WinCancelShutdown(thmq,TRUE); 87 IncrThreadUsage(); 85 88 86 89 WinSendDlgItemMsg(hwnd,KILL_LISTBOX,LM_DELETEALL,MPVOID,MPVOID); … … 126 129 PostMsg(hwnd,UM_CONTAINER_FILLED,MPVOID,MPVOID); 127 130 WinDestroyMsgQueue(thmq); 131 DecrThreadUsage(); 128 132 WinTerminate(thab); 129 133 } 130 134 131 135 132 VOID FillKillList(VOID *arg)136 static VOID FillKillListThread (VOID *arg) 133 137 { 134 138 HWND hwnd = *(HWND *)arg; … … 149 153 thmq = WinCreateMsgQueue(thab,0); 150 154 WinCancelShutdown(thmq,TRUE); 155 IncrThreadUsage(); 151 156 152 157 WinSendDlgItemMsg(hwnd, … … 227 232 Abort: 228 233 DosForceDelete("$PSTAT#$.#$#"); 229 PostMsg(hwnd, 230 UM_CONTAINER_FILLED, 231 MPVOID, 232 MPVOID); 234 PostMsg(hwnd,UM_CONTAINER_FILLED,MPVOID,MPVOID); 233 235 WinDestroyMsgQueue(thmq); 236 DecrThreadUsage(); 234 237 WinTerminate(thab); 235 238 } … … 355 358 listdone = FALSE; 356 359 if(fUseQProcStat) { 357 if(_beginthread(FillKillList 2,360 if(_beginthread(FillKillListThread2, 358 361 NULL, 359 362 65536, … … 364 367 } 365 368 else { 366 if(_beginthread(FillKillList ,369 if(_beginthread(FillKillListThread, 367 370 NULL, 368 371 65536,
Note:
See TracChangeset
for help on using the changeset viewer.