How to retrieve the ID or Serial Number of mainboard and harddisk on .NET?

J

jewelin

I'd tried to retrieve the ID or Serial Number of main-board and hard-disk
via WMI using C#, but failed.

One friend suggested me with some codes calling WIN32 API, but only
effective on WIN2000 or later.

How to retrieve those data on Win98/ME/2000/XP by using C#?
 
W

Willy Denoyette [MVP]

Inline ***

jewelin said:
I'd tried to retrieve the ID or Serial Number of main-board and hard-disk
via WMI using C#, but failed.
*** Please be more specific, what exactly failed?
One friend suggested me with some codes calling WIN32 API, but only
effective on WIN2000 or later.

How to retrieve those data on Win98/ME/2000/XP by using C#?

*** Use System.Management (WMI).

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top