c++ - Get total number of RAM bytes on windows -
I'm trying to get the total number of RAM bytes. I am not sure about the legitimacy of my results.
My computer has 8 GB RAM, control panel calls this 8.00GB (7.88 GB usable) .
Using the call multiplied by 1000, I get 8388608000 bytes (think kilobytes referencing Windows thinks actually 1000 bytes).
When I run the wmic ComputerSystem received TotalPhysicalMemory
, I get 8462008320 bytes.
When the conference does not honor multiplying the call results from 1024 conferences, I get 8589934592 bytes, which seem to be less likely than the previous results.
In the case it matters, I'm using two Important Ballistix Tactical BLT2C4G3D1608ET3LX0CEU per piece advertized as memory module 4GB After the text "itemprop =" lesson ">
1024 times the result of GetPhysicallyInstalledSystemMemory was the answer I was looking for.
This is the total number of RAM bytes installed on the system.
Comments
Post a Comment