Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2001, 02:20 PM
Hung Hung is offline
Junior Member
 
Join Date: Feb 2001
Posts: 5
Default How to get serial number of hard disk?

Who can help me to get serial number of hard disk ( not volume number) using Delphi. It realy very important to me.
Thanks a lot

The serial no. is printed on the hard disk, probably next to the bar code.
Reply With Quote
  #2  
Old 02-03-2001, 11:42 AM
Claude Claude is offline
Senior Member
 
Join Date: Jan 2001
Posts: 178
Default RE: How to get serial number of hard disk?

take a look at:

http://zz-www.sd.cninfo.net/renzj/hsl/computer/delphi/faq/hardware.html#hardware3

It shows a turbo pascal program that does just that (Your problem was easier to solve in the DOS era...). The program retreives the serial number by "talking" to the hard disk thru I/O Ports. To convert the program to Win32 you will need a component that can address ports. You may download such a component (that works in conjunction with a driver) right here on the components section of Delphi Pages.

I promise you nothing but your problem is an interesting one so I will try to see if there is an easier way to do it over the next few days. Meanwhile, you would be kind to keep me informed if you find a solution.

claude_martel@videotron.ca
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 12:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.