Solved

Function that get memory associated with some program

Posted on 1998-10-28
3
136 Views
Last Modified: 2010-04-06
I want to know is there some function in WinAPI that retrieves how many memory some program use, may be the used param is Handle.
...may be look like this  GetProgMem(WinAmp.Handle) for
WinAMP
0
Comment
Question by:jpenev1
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 10 total points
ID: 1344719
Hello
i think the api your after is:

globalsize(hMem:HGOBAL):DWORD;

hMem is a handle to the memory object
and dword returns the size of memory object in bytes.
InThe

0
 

Author Comment

by:jpenev1
ID: 1344720
Can you give me example , because I don't know how to use
this variable HGLOBAL, I tried with Application.Handle and
it retrieve 0.
0
 
LVL 17

Expert Comment

by:inthe
ID: 1344721
hi jpenev1
sorry i tried to get example but i to get a 0 all the time ???
Barry

ps did you get it working?
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question