473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Determining Hard Drive Serial Number

Dan
Does anyone know how to determine the physical hard drive serial
number? I found a GetVolumeInformation function in C++ but wanted a
comparable function in VB.net or C#.

Thanks
Dan Shanyfelt
Nov 16 '05 #1
2 13339
Why not call that function from C#/Vb.net itself? An example is here:
http://www.eggheadcafe.com/articles/20021019.asp

"Dan" <da**************@srs.gov> wrote in message
news:45*************************@posting.google.co m...
Does anyone know how to determine the physical hard drive serial
number? I found a GetVolumeInformation function in C++ but wanted a
comparable function in VB.net or C#.

Thanks
Dan Shanyfelt
Nov 16 '05 #2
Dan
Thanks for the replies.

I'm not sure GetVolumeInformation was the right function in the first
place. What I need is to get the manufacturer's serial number of the
physical drive, not the volume number of a logical drive. A coworker
found a great example of how to do this in c# at the code project:

http://www.codeproject.com/csharp/ha...k_serialNo.asp

Unfortunately, the Win32_PhysicalMedia class is not available below XP
and Server2k3. Does anyone have any ideas on how to get this info on
Server2k. I am looking for physical serial numbers of SCSI drives
some of which are configured in a RAID.

Thanks again,

Dan Shanyfelt
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: tom | last post by:
Hi, How do I get the serial number of the harddisk in .NET? I want this to be the same number even if the user has reformatted, so I do not want the volume serial number. Thanx, t
79
by: Klaus Bonadt | last post by:
In order to protect software from being copied without licence, I would like to use something like a key, which fits only to the current system. The serial number of the CPU or the current...
1
by: Ahmed Essa | last post by:
hiiiiiiiiiii, i have aproblem in System.management namespace which use to get the serial number of hard disk. my problem is that when i run my application on windows2000 server it cause execption...
14
by: Lauren Wilson | last post by:
Discovered this interesting comment on MSDN: "To programmatically obtain the hard disk's serial number that the manufacturer assigns, use the Windows Management Instrumentation (WMI)...
0
by: Ryan Liu | last post by:
How to read NIC card serial numbers or MAC address , Hard Drive serial numbers in Java or Delphi or C/C++ or C#? Thanks, Ryan
6
by: Paul Bromley | last post by:
Ok - I have given up on trying to find the active IP address for a given PC. For licensing purposes I need to retrive a unique identifier from the PC that the program is installed on. The Hard disk...
7
by: Adele le Roux | last post by:
Hi All, How can I get the hard disk serial number of a remote computer's C:? The drive will NOT be mapped as a network drive. Thanks, Adele
2
by: alokRx | last post by:
Hi I want that the user who has registered in my web site download the demo version of software and i have to trace the hard disc serial number of that user and the dsn name of the database with...
0
by: =?Utf-8?B?VE5Db2Rlcg==?= | last post by:
What function do I use to retrieve a drive's serial number using VC++ dot net 2.0? Thanks..
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.