Generating your own Hardware ID/Fingerprint for use with your software.
Note:As always, Please open Visual Basic.net and follow along. You won't learn anything by Copy and pasting the code :hidesmile:
Note:I already know what the "New to VB" or """"Pro Vb"""" Users are going to say... This is not a Microsoft Generated HardwareID , Answer to that is "I KNOW!" , ©Microsoft has a whole article about how they use a combination of Harddrive Serial and other serials (because they are different to the hardrive/processor/board..etc)A good read for this type of "application security", However..Every company has it's own way of generating a HardwareID/FingerPrint, My tutorial is how to get the serial (which is different for each board and etc, and use it as a UnigueID, You can (if you like) create a complex algorithm that uses this data to further this concept....(which is similiar to the concept used by commercial dll's like AZsdk [or whatever it is called]
- Create a New Windows Form Application
What you need on a form is
- A Texbox (setMutiline to true)
- 3 Buttons
- Set Button1 Text as "&TextBox" ' This button will display a list of "ID" in the Texbox
- Set Button2 text as "&MsgBox" ' This will display them in a MessageBox
- Set Button3 text as "E&xit" ' This will exit your application
Note: I added two methods to demonstrate this is very flexable
You should have something that looks like this.
[IMG]https://i111.photobucke*****m/albums/n121/golmor/image1.png[/IMG]
Code Part
Here is the code you will need for this to work
Button Click Event for "Textbox"
[IMG]https://i111.photobucke*****m/albums/n121/golmor/code2.png[/IMG]
(start typing leechers)
Same code for the msgbox button, Only change
This part of the code
toCode:Textbox1.text = htext
and that is pretty much the extent of itCode:Msgbox(htext)
here is the end results
[IMG]https://i111.photobucke*****m/albums/n121/golmor/2-1.png[/IMG]
[IMG]https://i111.photobucke*****m/albums/n121/golmor/3-1.png[/IMG]
You can use the serials as a UnigueID or Create a Simple(or complex) algorithm to create a new ID either way, hope this helps