Displaying 3 results from an estimated 3 matches for "getcurrentprocessmemori".
Did you mean:
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)
2008 May 18
2
A problem with GetProcessMemoryInfo?
I have made a simple program, but results from both windows and wine are quite different. Is this a bug in my program or in wine? 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,
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