Function that get memory associated with some program

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
jpenev1Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
intheConnect With a Mentor Commented:
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
 
jpenev1Author Commented:
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
 
intheCommented:
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
All Courses

From novice to tech pro — start learning today.