devel-windows.rst
changeset 189 a433d6009641
parent 155 e475cd4f789a
child 288 c34bdce72894
equal deleted inserted replaced
188:b299230216aa 189:a433d6009641
    13 
    13 
    14 See
    14 See
    15 
    15 
    16   http://www.dependencywalker.com/
    16   http://www.dependencywalker.com/
    17 
    17 
    18 * Kill process.
       
    19 
       
    20 ** tskill.exe.
       
    21 
       
    22   cmd> tskill {<pid>|<name>}
       
    23 
       
    24 ** taskkill.exe.
       
    25 
       
    26   cmd> taskkill /IM notepad.exe
       
    27   cmd> taskkill /PID 827
       
    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.
    18 * Sysinternals.
    62 
    19 
    63 
    20 TODO