[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

how to get hardisk serial number

Hakan OTAL

9/9/2003 7:50:00 AM

how can i get harddisk serial number in vb.net.
Thanks.


2 Answers

cmarchal

9/11/2003 3:29:00 PM

0

The most fully featured way to get information about hardware devices is to
use WMI. WMI functionality is accesable in the System.Management namespace
and requires a reference to system.management.dll.

The WMI class you will need is Win32_LogicalDisk.

Look in the .NET help for the ObjectQuery class for an example of using the
namespace.

Chris Marchal
Microsoft UK Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.

Hakan OTAL

10/4/2003 8:48:00 PM

0

i am so sorry. i noticed to thank to you.

A lot of thanks.


"Chris Marchal[MSFT]" <cmarchal@online.microsoft.com> wrote in message
news:ZZC#1lHeDHA.2308@cpmsftngxa06.phx.gbl...
> The most fully featured way to get information about hardware devices is
to
> use WMI. WMI functionality is accesable in the System.Management
namespace
> and requires a reference to system.management.dll.
>
> The WMI class you will need is Win32_LogicalDisk.
>
> Look in the .NET help for the ObjectQuery class for an example of using
the
> namespace.
>
> Chris Marchal
> Microsoft UK Developer Support
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>