You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using sysinfo 0.30.0 and building for i686-pc-windows-msvc, the Process members are not all filled. All of this works fine with default target.
My best guess is that it comes from a 32/64 bits problem.
letmut system = System::new_all();
system.refresh_processes();for(pid, process)in system.processes().iter(){ifletSome(cwd) = process.cwd(){println!("cwd={}", cwd);}else{println!("nope");}}
As far as I know, I noticed this for the following members:
cwd (None)
cmd (empy)
environ (empy)
root (None)
The text was updated successfully, but these errors were encountered:
We have a hard limit: a 32-bits process can not read memory from 64-bits processes (for very obvious reasons 😉). However it may work in full 32-bits environments (I’ll setup a virtual machine at work next week instead of testing in WOW64). If it works, I’ll simply remove the code exiting the get_process_params function on non 64-bits platforms, and that will be good enough for me.
Hi,
Using
sysinfo 0.30.0
and building fori686-pc-windows-msvc
, theProcess
members are not all filled. All of this works fine with default target.My best guess is that it comes from a 32/64 bits problem.
As far as I know, I noticed this for the following members:
cwd
(None
)cmd
(empy)environ
(empy)root
(None
)The text was updated successfully, but these errors were encountered: