تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
CPU Serial Number
#1
Try
            MsgBox(CpuId())
            Clipboard.SetText(CpuId())
        Catch exp As Exception
            'MsgBox(exp.Message)
        End Try


    Private Function CpuId() As String
        Dim computer As String = "."
        Dim wmi As Object = GetObject("winmgmts:" & _
            "{impersonationLevel=impersonate}!\\" & _
            computer & "\root\cimv2")
        Dim processors As Object = wmi.ExecQuery("Select * from Win32_Processor")

        Dim cpu_ids As String = ""
        For Each cpu As Object In processors
            cpu_ids = cpu_ids & ", " & cpu.ProcessorId
        Next cpu
        If cpu_ids.Length > 0 Then cpu_ids = cpu_ids.Substring(2)

        Return cpu_ids
    End Function
الرد }}}
تم الشكر بواسطة: salamandal


المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  HDD Serial Number abuzarei 0 290 17-08-23, 11:33 PM
آخر رد: abuzarei
Rainbow [كود] PC's serial number محمد مسافر 4 1,199 06-10-22, 11:03 PM
آخر رد: محمد مسافر
  [VB.NET] معرفة الرقم التسلسلى للهارد ديسك hard disck serial arbtech 1 6,075 18-06-17, 04:25 AM
آخر رد: Ratchinko

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم