|
-
Feb 24th, 2002, 10:20 AM
#1
Thread Starter
Hyperactive Member
HDD Serial number - How?
How can I get the harddrive serial number
and also make sure it is from the first harddrive?
(Copy protection)
Last edited by Bongo; Feb 24th, 2002 at 10:24 AM.
-
Feb 24th, 2002, 10:24 AM
#2
Fanatic Member
Not good.
The hard drive number is SO easy to change. There are lots of utilities and it's the first thing a pirate will try.
Better to lock to multiple items, like the MAC number of the network card or CPU serial number.
I've written some routines that fingerprint the CPU, Net card, Video card, Motherboard, BIOS, Hard Drive etc. that you are welcome to - but they are written in vb.net, I'm afraid, and will not work with vb6.
Brian
(Fighting with the RightToLeft bugs in VS 2005)
-
Feb 24th, 2002, 10:27 AM
#3
Thread Starter
Hyperactive Member
Thanks and sugar I am still on VB6.
any other suggestion. BTW the app has not to be
100% protected (there is no 100%) and the clients I am looking
are no hackers. The only thing which I will make sure
there usingit only on n computers where there have a licence.
and there should be a demo restriction in it.
but every help is welcome.
-
Feb 24th, 2002, 11:20 AM
#4
I think this is what you are after.
-
Dec 21st, 2003, 08:10 AM
#5
Fanatic Member
Hey BrianHawley would it be possible to get the vb.net code youve wrote for logging hardware serials
Many Thanks
Carl
I am curretly building a defect management system for software and web developers,
If you wana try it out (beta test) and keep it for free just send me a message
-
Dec 21st, 2003, 08:53 AM
#6
Hyperactive Member
A man with nothing to live for has everything to fight for...
-
Dec 21st, 2003, 08:20 PM
#7
Or take a look at the A program registration scheme link in my signature. It is a little demo app that registers a user based on the HDD serial number. It doesn't really matter if they can discover/change their HDD serial number because my app stores an encrypted value in the registry that needs to match the serial number. There is also a discussion in the thread about multiple things that can be checked if you don't think that just the HDD is good enough.
-
Dec 22nd, 2003, 09:10 AM
#8
Fanatic Member
Originally posted by carlblanchard
Hey BrianHawley would it be possible to get the vb.net code youve wrote for logging hardware serials
Many Thanks
Carl
http://www.vbforums.com/showthread.p...hreadid=250436
This is C#, but it should port easily.
Brian
(Fighting with the RightToLeft bugs in VS 2005)
-
Dec 22nd, 2003, 10:38 AM
#9
here's a quick example i knocked up , for the purpose of retrieving the first HD.
VB Code:
Private Sub Command1_Click()
Dim HD As Object
Dim x As Integer
x = 0
For Each HD In GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2").ExecQuery("select * from Win32_LogicalDisk")
If HD.MediaType = 12 Then '/// make sure we only get hard-drives.
If x = 0 Then'/// to allow only first to be shown.
MsgBox HD.Caption & vbCrLf & HD.VolumeSerialNumber
x = 1
End If
End If
Next
End Sub
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|