Solved

How to get HDD serial number

Posted on 1997-07-14
4
239 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now