SolvedDetecting RAM Type in VB.NET?

Posts 1–4 of 4 · Page 1 of 1
Detecting RAM Type in VB.NET?
Hello,
Could someone tell me how can I know the RAM type of my PC using VB.NET? Like DDr2, DDr3...
This is a way to do it. Best? I dont know!

Code:
'https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx
'Unknown 0 Other 1 DRAM 2 Synchronous DRAM 3 Cache DRAM 4 EDO 5 EDRAM 6 VRAM 7 SRAM 8 RAM 9 ROM 10 Flash 11 EEPROM 12 FEPROM 13 EPROM 14 CDRAM 15 3DRAM 16 SDRAM 17 SGRAM 18 RDRAM 19 DDR 20 DDR2 21 DDR2 FB-DIMM 22 DDR3 24 FBD2 25
Code:
    Public Sub RamInfo()
        Dim myProcess As New Process()
        myProcess.StartInfo.UseShellExecute = False
        myProcess.StartInfo.RedirectStandardOutput = True
        myProcess.StartInfo.FileName = "CMD.exe"
        myProcess.StartInfo.Arguments = "/C wmic MemoryChip get BankLabel , MemoryType"
        myProcess.StartInfo.CreateNoWindow = True
        myProcess.Start()
        Dim data = myProcess.StandardOutput.ReadToEnd()
        MsgBox(data)
    End Sub
Not working.
Microsoft:
„WMI may return Unknown for DDR2 and DDR3 memory types; this has to do with the SMBIOS that WMI reads.“

WMI uses the System Management BIOS (SMBIOS) reference specifications for this hardware lookup operation. The memory type and the form factor are part of the memory device specification (a Type 17 structure). Additionally, note the following specifics:
The memory type that is returned by the BIOS for DDR-2 memory is 0x13 (19). This specification was introduced in the SMBIOS v2.4 specification. 0x13 is defined as the DDR-2 memory type.

------------------------------------------------------------------------------

I think you have DDR2/DDR3 and now you think that it's not working.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us