Link to home
Start Free TrialLog in
Avatar of AVaulin
AVaulinFlag for Ukraine

asked on

How to get HDD serial number

How to get HDD serial number
I want to get HDD serial number (S/N). Questions like this were asked several times at Experts-Ecxhange. I've read answers (but I haven't found how to get what I want). I don't want to get number which "format" program give to each logical disk. I want to get S/N which manufacturer give to HDD (for example WD-WT3130423891 for WD, ER97TJB for Conner). I know how to do what I want under DOS, but can't use this knowledge under Win'95.
Can anybody help me?
ASKER CERTIFIED SOLUTION
Avatar of faster
faster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AVaulin

ASKER

Can you give me any reference how to begin learn and use DDK? I have no experience in this field.
Avatar of faster
faster

First you have to get DDK from microsoft, it contains quite a lot of samples and documents (sad to say, not well documented).  But anyway it has all the things that you will need.  I guess you already know how to code it assembler, and now what you need to do is to put your stuff in a well selected sample from DDK.  You will find some sample in its "base" subdirectory, which also contains the example to communicate with win32 app. (win32 app can call DeviceIOControl() API with two structures as its parameters, one for input, one for output).

Of course, to write a vxd is not an easy job, but anyway, you only need it to perform a very limited job and only want it to talk to a specific win32 app (your program), so that will be a lot easier.

Hope this helps.

Can you tell me how you can HDD Serial Number in DOS?