Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

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
0
jpenev1
Asked:
jpenev1
  • 2
1 Solution
 
intheCommented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now