Jump to content
Crystal-Cheats
Killha

Computer Informations

Recommended Posts


 Dim cpuItem As Object
        Dim cpu As Object




        UserView.Items.Clear()
        Try

            cpuItem = GetObject("winmgmts:").InstancesOf("Win32_Processor")

            If Err.Number = 0 Then
              

                UserView.Items.Add("Number of Processors:").SubItems.Add(cpuItem.Count.ToString.Trim)

                For Each cpu In cpuItem
                    UserView.Items.Add("Processors:").SubItems.Add(cpu.DeviceID)
                    UserView.Items.Add("Description:").SubItems.Add(Trim$(cpu.Name))
                    UserView.Items.Add("Tact (MHz):").SubItems.Add(cpu.MaxClockSpeed)
                    UserView.Items.Add("CPU-ID:").SubItems.Add(cpu.ProcessorId)
                    UserView.Items.Add("Memory:").SubItems.Add(Math.Round((My.Computer.Info.TotalPhysicalMemory / (1024 ^ 2)), 0).ToString & " MB-RAM")
                    UserView.Items.Add("OS:").SubItems.Add(My.Computer.Info.OSFullName)
                    UserView.Items.Add("OS Basis:").SubItems.Add(My.Computer.Info.OSPlatform)
                    UserView.Items.Add("OS Version:").SubItems.Add(My.Computer.Info.OSVersion)
                    UserView.Items.Add("Computer Name:").SubItems.Add(My.Computer.Name)
                    UserView.Items.Add("PysicalMemory:").SubItems.Add(My.Computer.Info.AvailablePhysicalMemory)




                Next

                cpuItem = Nothing
            End If

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...