Reputation: 29
I tried to get memory used by a individual process by using
BOOL WINAPI GetProcessMemoryInfo(
__in HANDLE Process,
__out PPROCESS_MEMORY_COUNTERS ppsmemCounters,
__in DWORD cb
);
But it is showing error saying undeclared identifier in PROCESS_MEMORY_COUNTERS
. I have included the header-file "psapi.h"
.
Anyone please suggest any API.
Thanks, M
Upvotes: 1
Views: 3738
Reputation: 25581
GetProcessMemoryInfo
is not a Windows Mobile or Windows CE SDK function, it's for the desktop. You'll need to use the ToolHelp API functions (http://msdn.microsoft.com/en-us/library/aa915058.aspx) to get a process memory snapshot and also the undocumented CeGetProcVMInfo
from pkfuncs.h.
More to read here:
Upvotes: 4