|
|
|
|
#1 |
|
Junior Member
Join Date: Apr 2009
Location: St. Petersburg, Russia
Posts: 25
|
get process info
How can I get "I/O Write Bytes" info for process?
|
|
|
|
|
|
#2 |
|
Junior Member
|
Oh, man. You can read some manual on this at MSDN.
Them use System plugin to call the DLL and function required. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2009
Location: St. Petersburg, Russia
Posts: 25
|
MSDN
If I could understand what is written there, I would not have to ask here |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Apr 2009
Location: St. Petersburg, Russia
Posts: 25
|
So... http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
System::Call 'kernel32::OpenProcess(i 1040, i 0, i $PID)i .r0' System::Alloc 48 ;6 counters * 8 bytes? Pop $1 System::Call 'kernel32::ProcessGetIOCounters(i r0, p r1)' ???
|
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
hmmm... good question - seems like it should work (except that 'p' is incorrect... that's the online docs vs included docs mismatch thing.. you'd want 'i')...
...except that it doesn't seem to. Perhaps the struct size isn't quite right - but doesn't seem to be anything wrong with it... PHP Code:
PHP Code:
|
|
|
|
|
|
#6 |
|
Member
Join Date: Nov 2009
Posts: 52
|
Dot
At least the following line should have a dot less on the second parameter. (it's a buffer 'out' so one has to supply the buffer handle)
PHP Code:
PHP Code:
|
|
|
|
|
|
#7 | ||
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Quote:
Quote:
![]() so, corrected code without the debuggery bits... PHP Code:
PHP Code:
|
||
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Apr 2009
Location: St. Petersburg, Russia
Posts: 25
|
Thank you!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|