Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Determining Process Information of Win process

by salva (Canon)
on Jun 15, 2015 at 06:25 UTC ( [id://1130422]=note: print w/replies, xml ) Need Help??


in reply to Determining Process Information of Win process

You would probably be able to use Win32::API to access the OS functions providing that information. You would have to use OpenProcess to get a handle to the process from its PID and then, the functions detailed here to read its information. Finally, you would have to release the handle using CloseHandle.

I have some code doing something similar here.

BTW, my knowledge of Windows is quite limited. Take my advice with care!

  • Comment on Re: Determining Process Information of Win process

Replies are listed 'Best First'.
Re^2: Determining Process Information of Win process
by BrowserUk (Patriarch) on Jun 15, 2015 at 06:54 UTC
    You would probably be able to use Win32::API to access the OS functions providing that information.

    That's exactly what Win32::Process::Info does.

    If that module is not working for him, it probably comes down to a problem with Win32::API, not working on his system.

    And the most likely cause of that is a mismatch between the version of Win32::API and the perl he is using. Eg, One built with MSVC and the other with MinGW.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1130422]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-18 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found