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...
Could someone tell me how can I know the RAM type of my PC using VB.NET? Like DDr2, DDr3...
'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
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