author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Fri, 17 Jul 2009 23:57:30 +0300 | |
changeset 150 | b6fcb9e6652e |
parent 143 | ff931ad0ec66 |
child 155 | e475cd4f789a |
permissions | -rw-r--r-- |
142
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
-*- mode: outline -*- |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
* Dependency Walker. |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
|
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
all dependent modules. For each module found, it lists all the functions that |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
are exported by that module, and which of those functions are actually being |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
called by other modules. Another view displays the minimum set of required |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
files, along with detailed information about each file including a full path |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
to the file, base address, version numbers, machine type, debug information, |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
and more. |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
|
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
See |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
|
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
16 |
http://www.dependencywalker.com/ |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
17 |
|
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
18 |
* Kill process. |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
19 |
|
143 | 20 |
** tskill.exe. |
142
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
21 |
|
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
22 |
cmd> tskill {<pid>|<name>} |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
23 |
|
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
24 |
** taskkill.exe. |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
25 |
|
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
26 |
cmd> taskkill /IM notepad.exe |
6de0091cc5e9
How kill task on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
27 |
cmd> taskkill /PID 827 |
143 | 28 |
|
29 |
* lsof for Windows. |
|
30 |
||
31 |
** handle.exe from Sysinternals. |
|
32 |
||
33 |
cmd> handle d:\home |
|
34 |
ispell.exe pid: 244 784: D:\home\drivers\token_api\src |
|
35 |
Far.exe pid: 432 10C: D:\home\drivers\token_api |
|
36 |
||
37 |
cmd> handle -p 1265 |
|
38 |
C: File (RW-) C:\Program Files\Common Files\GTK\2.0\bin |
|
39 |
288: Section \BaseNamedObjects\mmGlobalPnpInfo |
|
40 |
||
41 |
** TaskList.exe. |
|
42 |
||
43 |
cmd> TaskList |
|
44 |
Process Name PID Session Name #Session Memory |
|
45 |
========================= ====== ================ ======== ============ |
|
46 |
System Idle Process 0 Console 0 28 KB |
|
47 |
System 4 Console 0 236 KB |
|
48 |
smss.exe 592 Console 0 432 KB |
|
49 |
csrss.exe 656 Console 0 4 404 KB |
|
50 |
winlogon.exe 680 Console 0 2 792 KB |
|
51 |
services.exe 724 Console 0 3 260 KB |
|
52 |
||
53 |
** netstat.exe. |
|
54 |
||
55 |
cmd> netstat -o |
|
56 |
Type Local addr Remote addr State PID |
|
57 |
TCP user:1154 localhost:1153 ESTABLISHED 1512 |
|
58 |
TCP user:5152 localhost:1052 CLOSE_WAIT 1524 |
|
59 |
TCP user:1036 services.int:5222 ESTABLISHED 1188 |
|
60 |
||
61 |
* Sysinternals. |
|
62 |
||
63 |