tags:

views:

56

answers:

1

I'm looking for same way to get an unique ID of every partition in Win OS. Also for flash drives (SD cards, pendrives, etc.) connected to PC.

I think that after formatting they get an unique ID - like MAC, right?

Also I want to get other information of that partition - it's name, file system, size, etc.

A: 

I thought there might be an easy, painless way, but apparently not. Understandable, since .net semi tries to be platform-neutral, and volume serial numbers not so much.

You'll need to use P/Invoke to get the info. See http://www.eggheadcafe.com/articles/20021019.asp for details.

cHao
I found also: http://www.geekpedia.com/tutorial233_Getting-Disk-Drive-Information-using-WMI-and-Csharp.html and http://msdn.microsoft.com/en-us/library/aa394135(v=VS.85).aspx i will test the solutions :)
BlueMan