Login or Sign Up
Logging in...
Remember Me?
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in NSIS Discussion only
Search
Advanced Search
Winamp & Shoutcast Forums
Forum
Developer Center
NSIS Discussion
Announcement
Collapse
No announcement yet.
HwInfo.dll inaccurate API used
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
kalverson
started a topic
HwInfo.dll inaccurate API used
23 February 2011, 11:18
HwInfo.dll inaccurate API used
The author of this plugin should consider using the following replacement API (GlobalMemoryStatusEx instead of GlobalMemoryStatus) that is more accurate on larger installed memory. MSDN points this out and I have found it to be very true.
void CHardwareInfo::GetTotalSystemMemory( int &sysMem )
{
MEMORYSTATUSEX statex;
statex.dwLength = sizeof (statex);
GlobalMemoryStatusEx (&statex);
sysMem = (int)( ceil( statex.ullTotalPhys / 1048576.f ) );
}
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
😀
🥰
🤢
😎
😡
👍
👎