search for: getcurrentprocessmemory

Displaying 3 results from an estimated 3 matches for "getcurrentprocessmemory".

2009 Mar 01
0
Re: A problem with GetProcessMemoryInfo?
I modified code to: #include <windows.h> #include "psapi.h" #include <stdio.h> #include <stdlib.h> #pragma comment ( lib, "psapi.lib" ) void GetCurrentProcessMemory () { PROCESS_MEMORY_COUNTERS pmc; printf("{\n}"); bool ret=GetProcessMemoryInfo ( GetCurrentProcess() , &pmc, sizeof ( pmc ) ); if (ret) printf("\n[successed: %d]", (int)pmc.WorkingSetSize); else printf("\n...
2008 May 18
2
A problem with GetProcessMemoryInfo?
...ine? Any advice is appreciated :) /* result under windows: { } [successed: 1085440]{ } result under wine(linux): { } [successed: 0]{ */ #include <windows.h> #include "psapi.h" #include <stdio.h> #include <stdlib.h> #pragma comment ( lib, "psapi.lib" ) void GetCurrentProcessMemory () { PROCESS_MEMORY_COUNTERS pmc; printf("{\n}"); bool ret=GetProcessMemoryInfo ( GetCurrentProcess() , &pmc, sizeof ( pmc ) ); if (ret) printf("\n[successed: %d]", (int)pmc.WorkingSetSize); else printf("\n<failed>"); printf("{\n}")...
2008 Nov 17
1
Re: A problem with GetProcessMemoryInfo?
Doesn't compile: austin at austin-desktop:~$ i586-mingw32msvc-gcc foo.c foo.c: In function ?GetCurrentProcessMemory?: foo.c:14: error: ?bool? undeclared (first use in this function) foo.c:14: error: (Each undeclared identifier is reported only once foo.c:14: error: for each function it appears in.) foo.c:14: error: expected ?;? before ?ret? foo.c:17: error: ?ret? undeclared (first use in this function) foo.c: In...