|
-
Nov 11th, 2000, 04:10 PM
#1
Thread Starter
Member
I've used the GetVolumeInformation to return the serial number of a CD that is in the CD Drive on my computer - so I know it's not right for what i want to do now!
I want to get the serial (or is it part/product) number for my CD Drive (and any other drive for that matter) - e.g. DVD2240E for my Creative Labs DVD Drive.
I think I could get it through BIOS but this involves getting the WMI download from Microsoft and if there's an easier solution I'd appreciate it.
Thanks in advance
Matt
VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused  )
-
Nov 11th, 2000, 07:05 PM
#2
Hyperactive Member
That's what i'm talking about!
Yeah,
I have the code for that, just with a bit of a problem:
it's in C, and i don't ever learn how it works and
i have posted the source code hoping that some one could,
make it inside a .dll or to VB or whatever i could be able
to use it in VB6.
So if you or a friend is up for the challenge here it is:
http://forums.vb-world.net/showthrea...threadid=39123
And, please... if you ever get it working in VB don't forget
to send me a copy...
Saludos...
p.s.
I used that in a library for Clipper and it worked great for me
at the moment to give licenses for my apps...
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Nov 11th, 2000, 07:34 PM
#3
Lively Member
D12Bit, where did you get the C soure?
I could make a dll but I don't have all the files that I need to compile it, like extend.h
-
Nov 11th, 2000, 08:05 PM
#4
Hyperactive Member
Sorry, but...
I'm sorry...
That's the only file that i have...
this is the source code that came with the library that i use
for clipper.
I can send the original zip file if you like, because i have
made some research looking for the author, but he doesn't
have the domain name of microtask, it belongs to another company.
I have lost the url for the author, besides i didn't obtain it
from him. i got it from http://www.iag.net/~philb/
wich is a place for source code and libraries for clipper development..
Anything that i can for you i'll be glad to try to help..
Saludos...
[email protected]
p.s.
I have found the right url :
http://www3.ns.sympatico.ca/microtask
this is the url for MicroTask the one that obtains the
REAL SERIAL NUMBER of an IDE hard disk, ther he has an
DOS app not commpatible with Win32 environment to obtain
the HD Snum.
i send him an email to obtain some info, so i'll wait...
Saludos...
[Edited by D12Bit on 11-11-2000 at 08:38 PM]
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Nov 11th, 2000, 08:55 PM
#5
Lively Member
Ok, your first link was useful, but...
it is clipper c and I don't think that I can compile this stuff with Visual Studio...
To get the product number, why don't you ask to someone who already knows it: Windows
You could build a function that extracts it from the registery
the info are somewhere near
HKEY_LOCAL_MACHINE\HARDWARE
maybe it will depend on the version on windows...
just take a look with regedit.exe
on my computer, the info are in: (it's an IDE drive...)
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port 0\Scsi Bus 0\Target Id 0\Logical Unit Id 0\
that should be easier that way...
-
Nov 12th, 2000, 10:21 AM
#6
Hyperactive Member
Sorry, but there's no information about the factory's serial number in the registry...
BTW, if this helps; the source was compiled to library using
Borland Turbo C++. Maybe the extend.h it's the same for all?
Saludos...
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Nov 12th, 2000, 02:07 PM
#7
Lively Member
Maybe it depends on the hardware...
because in the registery, I have in:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port 0\Scsi Bus 0\Target Id 0\Logical Unit Id 0\
Identifier FUJITSU MPD3084AT
Type DiskPeripheral
And MPD3084AT is the part number for my hard drive
Maybe you won't have the part number if it is detected as a generic hardware...
I got the file extend.h and all other files that came up with, but I just can't compile it with VS...
Looking in the registery seems to be an easier way in my opinion...
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
|