[SHLWAPI] Implement SHIsLowMemoryMachine (#2783)

Implement shlwapi!SHIsLowMemoryMachine function.
This commit is contained in:
Katayama Hirofumi MZ 2020-05-14 09:47:21 +09:00 committed by GitHub
parent b70232d416
commit d3a550a6a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4324,16 +4324,28 @@ HRESULT WINAPI SHGetInverseCMAP(LPDWORD dest, DWORD dwSize)
* Determine if the current computer has low memory.
*
* PARAMS
* x [I] FIXME
* dwType [I] Zero.
*
* RETURNS
* TRUE if the users machine has 16 Megabytes of memory or less,
* FALSE otherwise.
*/
BOOL WINAPI SHIsLowMemoryMachine (DWORD x)
BOOL WINAPI SHIsLowMemoryMachine(DWORD dwType)
{
FIXME("(0x%08x) stub\n", x);
#ifdef __REACTOS__
MEMORYSTATUS status;
static int is_low = -1;
TRACE("(0x%08x)\n", dwType);
if (dwType == 0 && is_low == -1)
{
GlobalMemoryStatus(&status);
is_low = (status.dwTotalPhys <= 0x1000000);
}
return is_low;
#else
FIXME("(0x%08x) stub\n", dwType);
return FALSE;
#endif
}
/*************************************************************************