AutoHotkey Community

It is currently May 27th, 2012, 11:51 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: August 26th, 2010, 4:01 am 
Offline

Joined: November 4th, 2008, 10:25 pm
Posts: 222
Location: Memphis, TN
I am looking for a way to determine the working set size of a process.
for instance, this code will get me the minimum and maximum working set size in bytes but how can i get the actual size?
Code:
pid:= DllCall("GetCurrentProcessId")
h:=DllCall("OpenProcess", "UInt", 0x001F0FFF, "Int", 0, "Int", pid)
DllCall("GetProcessWorkingSetSize", "UInt", h, "Int*", wsMin, "Int*", wsMax)
DllCall("CloseHandle", "Int", h)


MsgBox %wsMin%`n%wsMax%


any help would be greatly appreciated.

-JP


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2010, 4:33 am 
Offline

Joined: June 7th, 2008, 6:00 am
Posts: 389
Is this what you're looking for?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, MSN [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group