Foxtable(狐表)用户栏目专家坐堂 → [求助]内存硬件读取的问题


  共有2087人关注过本帖平板打印复制链接

主题:[求助]内存硬件读取的问题

帅哥哟,离线,有人找我吗?
81538475
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1287 积分:10368 威望:0 精华:1 注册:2018/1/20 12:40:00
[求助]内存硬件读取的问题  发帖心情 Post By:2019/11/13 12:52:00 [只看该作者]

想问下,现在读取硬件的方法有哪几种,目前我用下面的方式读取内存的类型,很多机器都读取不出来。
  Dim cmicWmi3 As New System.Management.ManagementObjectSearcher("Se\ect * From Win32_PhysicalMemory")
    Dim strn3 As String
    
    Dim Caption1 As String '数字ID
    Dim Manufacturer As String
    
    Dim speed As String
    'Dim SMBIOSMemoryType As String '这个我们暂且称其为序列号码
    For Each cmicWmiObj As System.Management.ManagementObject In cmicWmi3.Get
        Dim MemoryType As String
        Caption1 = cmicWmiObj("Capacity") & "  " 
        Manufacturer = cmicWmiObj("Manufacturer") & "  " 
 
 try
            MemoryType = cmicWmiObj("SMBIOSMemoryType") & "  "
        Catch ex As Exception
            
                MemoryType = cmicWmiObj("MemoryType") & "  "
            
        End Try
        speed= cmicWmiObj("speed") & "  "

next

另外就是如何读取显示器厂商
[此贴子已经被作者于2019/11/13 12:57:33编辑过]

 回到顶部