|
-
Dec 12th, 2000, 09:03 PM
#1
Thread Starter
New Member
I need help in reading the Hard Disk Serial Number [Not the volume number] using VB. Currently I am using VB5.
I have found a site that has the program to read the serial number but it is written in C++.
Can anyone convert it to a DLL or has any other solution for it.
The site is http://www.winsim.com/
Thank you.
-
Dec 12th, 2000, 11:03 PM
#2
New Member
i went to the website but couldn't find the link.
can you specify?
-
Dec 13th, 2000, 05:33 AM
#3
Thread Starter
New Member
The Link
-
Dec 13th, 2000, 05:40 AM
#4
Member
You don't need any third party software. You can either use
the API Function GetVolumeInformation or Scripting.FileSystemobject.GetDrive(Drive$).SerialNumber
-
Dec 13th, 2000, 07:17 AM
#5
Fanatic Member
Take a look here >> http://www.vbapi.com/ref/g/getvolumeinformation.html for more information on using the API.
-
Dec 13th, 2000, 08:36 AM
#6
Fanatic Member
Serial Number
Check this code:
Public Function DiskSerialNumber(sDrive As Drive) As String
Rem obtener numero de serial utilizando la libreria de rem objeto del reference
Dim Fso As New Scripting.FileSystemObject
Dim dr As Scripting.Drive
Set dr = Fso.GetDrive(sDrive)
DiskSerialNumber = Hex$(dr.SerialNumber)
End Function
-
Dec 13th, 2000, 09:02 AM
#7
_______
<?>
Both API and FSO codes listed here are for Volume Serial Number...not the MFG Serial Number.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Dec 13th, 2000, 09:30 PM
#8
Thread Starter
New Member
I believe those codes are for Volume Number and not the Manufacturer Number.
-
Dec 13th, 2000, 10:12 PM
#9
_______
<?>
coltair...did you get my email? If not check it out. I have an app that may do it for you.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Dec 13th, 2000, 10:40 PM
#10
Hyperactive Member
-
Dec 14th, 2000, 04:04 PM
#11
Hi,
HeSaidJoe, could you please be so kind to share it with me too, i have been looking for that also for a long time.
Jorgen
[email protected]
-
Jun 5th, 2001, 03:08 AM
#12
Addicted Member
The example to obtain REAL HDD serial (ActiveX written on C++ with source code and example on VB how to use it)
http://www.relib.com/code.asp?id=482
to download zip click to
http://www.relib.com/code/x482.zip
-
Aug 18th, 2002, 07:09 AM
#13
New Member
HDD serial nuber
Plz everybody, I need these files to get the *PHYSICAL* hard disk serial number
I don't know how to get "HeSaidJoe" files
and the link for "http://www.relib.com/code/x482.zip" which sent by "smalig" does not work
so anyone knows the answer plz help coz I need it ASAP
-
Aug 19th, 2002, 09:13 PM
#14
-
Aug 19th, 2002, 10:46 PM
#15
Hyperactive Member
the : GetVolumeInformation API call will only give you the
serial number assigned to the harddisk during the format...
the Serial number looked for in here is the Serial number that is assigned to the BIOS of the HD...just like the MAC address of a NIC (Network Interface Card)
I actually managed to get my hands on a driver and some workingng code for Win9x/Me/2K ...not tested on XP...
the bad news is that the partition on the HD where I had stored that wen't bye bye on me...
I sent that code to a friend before that...I'm trying to get in contact with him...
But YES! ...it really works! ...and it really gives me the REAL and not changeable HD Serial number... that I actually I'm using for protecting some of my apps...the only thing that I managed to save was the OCX that I made for that and the Registration Serial number generator...
I'll post asap the code and the files used for this...
p.s.
I don't remember where...but this I found it searching in the net...
a lot of hard work but it was worth it...(even tho I have to do it again )
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Nov 17th, 2002, 03:52 PM
#16
Member
OCX
Is this the OCX, you was looking for? Reading out the Hardwareserial given by the Manufacturer.
Hope it helps,
MyVar.
[UPS, wheres the File I attached?]
Last edited by Myvar; Nov 17th, 2002 at 04:01 PM.
-
Nov 17th, 2002, 03:59 PM
#17
Member
OCX
Is this the OCX, you was looking for? Reading out the Hardwareserial given by the Manufacturer.
http://www.vbfun.de/vb/index.htm --> Komponents-->System-->"Hardware-Informationen"-->Download hwinfo.zip
Hope it helps,
MyVar.
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
|