Code Monkey home page Code Monkey logo

Comments (8)

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024 2

Oh I didn't know about this. I'll take a look when I get time!

from sysinfo.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

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.

tantrus332 avatar tantrus332 commented on June 9, 2024

When started as an administrator, nothing changes.

from sysinfo.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

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.

tantrus332 avatar tantrus332 commented on June 9, 2024

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.

tantrus332 avatar tantrus332 commented on June 9, 2024

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.

GuillaumeGomez avatar GuillaumeGomez commented on June 9, 2024

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.

tantrus332 avatar tantrus332 commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.