Solved

How to get HDD serial number

Posted on 1997-07-14
4
240 Views
Last Modified: 2013-12-03
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?
0
Comment
Question by:AVaulin
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
faster earned 200 total points
ID: 1400807
if you know how to do this in dos, there should be no problem under win95.  The only difficulty is that in dos you probably directly access some hardware port, however in normal windows application this is prohibited.  If that is your problem, you can write a vxd to take care of this part and let your win32 app to get the information from the vxd.  You will need DDK for information on writing vxd.  Win32 probably will not provide such kind API directly so this is probably your only choice.
0
 
LVL 4

Author Comment

by:AVaulin
ID: 1400808
Can you give me any reference how to begin learn and use DDK? I have no experience in this field.
0
 
LVL 7

Expert Comment

by:faster
ID: 1400809
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.

0
 

Expert Comment

by:irideous
ID: 7536516
Can you tell me how you can HDD Serial Number in DOS?
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question