[Bug 13302] New: GetProcessMemoryInfo is unimplemented
http://bugs.winehq.org/show_bug.cgi?id=13302 Summary: GetProcessMemoryInfo is unimplemented Product: Wine Version: 1.0-rc1 Platform: PC URL: http://forum.winehq.org/viewtopic.php?t=946 OS/Version: Linux Status: NEW Keywords: testcase Severity: enhancement Priority: P2 Component: ntdll AssignedTo: wine-bugs(a)winehq.org ReportedBy: austinenglish(a)gmail.com
From wine-users: 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, "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}"); } void main() { GetCurrentProcessMemory(); } For anyone interested in implementing, see: http://source.winehq.org/source/dlls/psapi/psapi_main.c#L520 http://source.winehq.org/source/dlls/ntdll/process.c#L211 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13302 --- Comment #1 from Austin English <austinenglish(a)gmail.com> 2008-11-16 18:23:28 --- Still unimplemented. Probably should've tested this first, but doesn't compile: austin(a)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 function ‘main’: foo.c:27: warning: return type of ‘main’ is not ‘int’ -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13302 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |ABANDONED --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2010-03-11 17:24:44 --- No response in 8 months, marking abandoned. If you still have an issue in current (1.1.40 or newer) wine, and can provide the needed information, feel free to reopen. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13302 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Austin English <austinenglish(a)gmail.com> 2010-03-11 17:26:01 --- Closing. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13302 --- Comment #4 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2010-03-11 20:34:07 --- You asking yourself? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13302 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |RESOLVED Resolution|ABANDONED |FIXED --- Comment #5 from Austin English <austinenglish(a)gmail.com> 2010-03-11 20:43:27 --- (In reply to comment #4)
You asking yourself?
Apparently I'm schizophrenic ;-). It's implemented though: http://source.winehq.org/git/wine.git/?a=blob;f=dlls/psapi/psapi_main.c#l523 so marking fixed. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13302 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> 2010-03-19 14:10:09 --- Closing bugs fixed in 1.1.41. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org