WmiMonitorID - Converting the results to ASCII
问题 Am attempting to query the serial number and the model of the monitor. I managed to use the WMI code creator to generate the below code: Try Dim MInfo As New ManagementObjectSearcher("root\WMI", "SELECT * FROM WmiMonitorID") For Each Monitor In MInfo.Get() If Monitor("SerialNumberID") Is Nothing Then MsgBox("NA") Else Dim arrSerialNumberID As UInt16() arrSerialNumberID = Monitor("SerialNumberID") For Each arrValue As UInt16 In arrSerialNumberID Console.WriteLine("Serial: " & arrValue) Next