'How to get the RAM name?
I have a question about RAM information - How do you get its name?
So far, from Win32_PhysicalMemory and Win32_PhysicalMemoryArray classes I was able to get most of the info except the name (display name; eg. CRUCIAL BALLISTIX SPORT LT RED)
The platform I'm coding on is .NET WinForms - C#.
References I looked at
- https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-physicalmemoryarray
- https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-physicalmemory
My question is: How can I get the RAM name?
Here's a piece of code I am using to retrieve the RAM name and/or manufacturer.
ManagementObjectSearcher myRamObject = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMemory");
foreach(ManagementObject obj in myRamObject.Get())
{
RAM.NAME = obj["Name"].ToString();
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
