简体   繁体   中英

How can I get Installed Memory Information?

I'm currently trying to get information on the installed memory in a c++ program I'm writing using <windows.h> . I'm able to get things like total number of threads, cpu base clock speed, and installed physical memory. Does anyone know if there is a way for me to get hardware information like operating frequency on each installed memory stick?

I'm able to get the total amount of installed memory with something like...

unsigned long long total_memory_kilobytes = 0;
GetPhysicallyInstalledSystemMemory(&total_memory_kilobytes);

from https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getphysicallyinstalledsystemmemory?redirectedfrom=MSDN

But I have not been able to find anything in the API's about getting specific device information.

Thank you

I suggest you could try to use Win32_PhysicalMemory to get the information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM