Solved

Function that get memory associated with some program

Posted on 1998-10-28
3
137 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

732 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