Sign in to follow this  
Followers 0
VicTT

Process question

9 posts in this topic

How can you get the memory used by a process?Not a handle to it, nothing like that...Just the amount of bytes of memory that a process is using..


[quote]Together we might liveDivided we must fall[/quote]

Share this post


Link to post
Share on other sites



like what it shows in task manager?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

How can you get the memory used by a process?Not a handle to it, nothing like that...Just the amount of bytes of memory that a process is using..

VirtualQueryEx, in my signature.

Nomad :D

Edit: Well, that also depends on what memory you are talking about. VirtualQueryEx doesn't show how much RAM the process is using, if that's what you mean. I'd have to do some looking around to get that info.

Edited by Nomad

Share this post


Link to post
Share on other sites

Yes...what it shows in the task manager...I've downloaded your VirtualQueryEx today...Is there a function to retrieve the number of kb used by a process (check out first post)..

Didn't think so :D..I'm also not fond of getting every memory region size and adding them up..


[quote]Together we might liveDivided we must fall[/quote]

Share this post


Link to post
Share on other sites

Yes...what it shows in the task manager...I've downloaded your VirtualQueryEx today...Is there a function to retrieve the number of kb used by a process (check out first post)..

Didn't think so :D..I'm also not fond of getting every memory region size and adding them up..


[quote]Together we might liveDivided we must fall[/quote]

Share this post


Link to post
Share on other sites

Yes...what it shows in the task manager...I've downloaded your VirtualQueryEx today...Is there a function to retrieve the number of kb used by a process (check out first post)..

Didn't think so :D ..I'm also not fond of getting every memory region size and adding them up..

Then make a script to do it for you. Until yesterday, there wasn't even a VirtualMemoryEx UDF... so having to do a little of your own work shouldn't be that big of an issue.

Share this post


Link to post
Share on other sites

As long as there isn't an easier/faster way of doing it, addition isn't something I'm afraid of...And I'm pretty sure Task Manger does it another way..


[quote]Together we might liveDivided we must fall[/quote]

Share this post


Link to post
Share on other sites

*BUMP


[quote]Together we might liveDivided we must fall[/quote]

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I thought Gary had done this in the past, but if not, you could always start here.

http://msdn.microsoft.com/library/default....smemoryinfo.asp

Edit:

Or maybe here:

http://www.autoitscript.com/forum/index.ph...st&p=170800

If not that particular post, then Saunders has an example but you have to fix the name of the psapi.dll to correctly use it (he mistyped it).

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0