Re: A problem with GetProcessMemoryInfo?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



vitamin wrote:
> 
> brown wrote:
> > 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 :)
> > 	bool ret=GetProcessMemoryInfo ( GetCurrentProcess() , &pmc, 
> 
> 
> It's not implemented in Wine: 
> http://source.winehq.org/source/dlls/psapi/psapi_main.c#L520 calls http://source.winehq.org/source/dlls/ntdll/process.c#L211
> 
> You should use other functions available form kernel32 instead.


Thanks for your reply.
I tried to use NtQuerySystemInformation instead, but it seems the function doesn't work well either. :(

NTSTATUS ns = NtQuerySystemInformation ( SystemProcessInformation, pspi, dSize, NULL );

http://source.winehq.org/source/dlls/ntdll/nt.c#L669
http://source.winehq.org/source/dlls/ntdll/nt.c#L762

BTW, wine's taskmgr.exe won't show real 'Mem Usage' under linux (but will under windows).






[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux