Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to get HDD serial number

Posted on 1997-07-14
4
Medium Priority
?
254 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 600 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

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

877 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