Results 1 to 8 of 8

Thread: Hardware ID detector help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Hardware ID detector help

    does any one can share Hardware ID detector .... or code


    advice me...
    Last edited by standard; Sep 2nd, 2010 at 10:39 AM.

  2. #2
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: Hardware ID detector help

    Check out the link in my signature. It's a class that finds several hardware IDs.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: Hardware ID detector help

    sir i need only machine id how to get that ?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: Hardware ID detector help

    .... like this

    20a8-4e4b-5e3c-9da0-7a57-3918-40ae-36f9
    Last edited by standard; Sep 2nd, 2010 at 09:29 PM.

  5. #5
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: Hardware ID detector help

    There is no "machine ID". There's many hardware IDs from various hardware components in your system and many software makers like Microsoft combine, encode and hash them into unique IDs that can be used to identify a computer; but there's no standard way to do this and everyone has their own proprietary method.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: Hardware ID detector help

    ok

    I'm Using WinLisence on license management i create a license key with Hardware Id

    i choose only CPU on hardware this is my code to get CPU ID but when i reg with that CPU id the license does not passed on regkey.on trial exe. whats wrong?


    Code:
    Imports System.Management
    Public Class Form1
    
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            TextBox1.Text = GetCpuID()
    
        End Sub
    
        Public Function GetCpuID() As String
            Dim cpuinfo As String = String.Empty
            Dim temp As String = String.Empty
            Dim mc As ManagementClass = New ManagementClass("Win32_Processor")
            Dim moc As ManagementObjectCollection = mc.GetInstances()
            For Each mo As ManagementObject In moc
                If cpuinfo = String.Empty Then
                    cpuinfo = mo.Properties("ProcessorId").Value.ToString
    
                End If
            Next
    
    
            Return cpuinfo
        End Function
    
        Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
    
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    End Class
    Last edited by standard; Sep 2nd, 2010 at 11:44 PM.

  7. #7
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: Hardware ID detector help

    try this
    Code:
    Public Shared Function GetProcessorId() As String
            Dim strProcessorId As String = String.Empty
            Dim query As New SelectQuery("Win32_processor")
            Dim search As New ManagementObjectSearcher(query)
            Dim info As ManagementObject
    
            For Each info In search.Get()
                strProcessorId = info("processorId").ToString()
            Next
            Return strProcessorId
    
        End Function
    __________________
    Rate the posts that helped you

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    Re: Hardware ID detector help

    Quote Originally Posted by riteshjain1982 View Post
    try this
    Code:
    Public Shared Function GetProcessorId() As String
            Dim strProcessorId As String = String.Empty
            Dim query As New SelectQuery("Win32_processor")
            Dim search As New ManagementObjectSearcher(query)
            Dim info As ManagementObject
    
            For Each info In search.Get()
                strProcessorId = info("processorId").ToString()
            Next
            Return strProcessorId
    
        End Function


    here is the CPU ID got from that code = BFE9FBFF000006EC

    license info:
    Customer = test
    Software = test
    Hardware Id =BFE9FBFF000006EC


    when i create the license key .. the regkey does not passed on my trial exe.


    then the software said heres your right machine id = 20a8-4E4B-5E3C-9DA0-7A57-ACD7-6668-36F9

    i tried this machine id "20a8-4E4B-5E3C-9DA0-7A57-ACD7-6668-36F9 " and it works ..Showbox from winlicense..

    now the question is how can i get that machine id ..by vb codes..
    Last edited by standard; Sep 3rd, 2010 at 02:49 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width