Well, actually this is easy to do in Visual Studio 2010. I include windows.h, and done. But i’m trying to do this in Qt, however no success. I included windows.h but still GetPhysicallyInstalledSystemMemory() isn’t defined.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GetPhysicallyInstalledSystemMemoryfunction isn’t included in current MinGwwindows.hheader. But you can declare it yourself:Then, liking with
kernel32allows you to use it: