Nurullah.c Nurullah.c - 18 days ago 6
C++ Question

How can use GetPhysicallyInstalledSystemMemory api function?

When i try this code :

bool control;
PULONGLONG RamSize;
control = GetPhysicallyInstalledSystemMemory(RamSize);


the program say " MemoryStatusInfo.exe stopped working."
How can i use


GetPhysicallyInstalledSystemMemory()


function ?

Answer
ULONGLONG RamSize;
BOOL control = GetPhysicallyInstalledSystemMemory(&RamSize);    

need use this code. and bool != BOOL