Comments (8)
Oh I didn't know about this. I'll take a look when I get time!
from sysinfo.
Did you try running with root? I recall having issues about getting some information on windows when I wasn't root. But maybe this is just a bug...
I'll try to take a look in any way.
from sysinfo.
When started as an administrator, nothing changes.
from sysinfo.
Then it's a bug. I'm sorry but I don't have a windows 7. The code shouldn't be too complex. Do you think you could try to see what's wrong? I'll try to reproduce it on windows 10 but I'm afraid that the bug might be specific to windows 7...
from sysinfo.
I'm new to Rust, and I've never used the Windows API directly, so I'm afraid I will not be able to help much, but I'll try to look.
from sysinfo.
I think that the error is not specific for Windows 7, as the code for some functions (get_cmd_line, get_proc_env in file src/windows/process.rs) is commented out and will always return an empty string.
get_cmd_line
get_proc_env
from sysinfo.
Ah right, as you can see, getting this information costs a lot and is very unstable so I preferred to just let it go.
from sysinfo.
Perhaps it's worth using WMI with a wrapper to get the processes command line/executable path. For example: pc-manager
from sysinfo.
Related Issues (20)
- serde example fails to compile HOT 4
- 32bit debug builds panic (misaligned pointer dereference:) HOT 9
- How to compile?
- Build fails because of ntapi HOT 1
- UB creating a reference with an under-aligned address HOT 3
- Heap corruption on Windows starting with `0.29.5` HOT 6
- Add more options to configure which data should be collected HOT 4
- Repository contains Cargo.lock file HOT 3
- Process SWAP usage is 1000x of what it should be. HOT 4
- Add support for GPU HOT 6
- Mac M1 reports 0 available memory since 0.29 HOT 5
- [Feature Request] Better Group Support HOT 1
- Replace `cfg(windows)` with `cfg(target_os = "windows")` HOT 2
- Rename `Disk` and `DiskExt` into `StorageDevice` and `StorageDeviceExt` HOT 1
- Adding CPU Governor/Frequency information HOT 2
- Add fan speed HOT 3
- Components list is empty HOT 3
- Flagged as Trojan with Windows Defender HOT 2
- 运行 let sys = System::new_all(); 导致 panic HOT 4
- `DiskExt` examples use `System::new` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysinfo.