Solved

How to get HDD serial number

Posted on 1997-07-14
4
244 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

624 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