CD - Device/Serial id?

Microsoft Visual c# .net standard 2003 c...
December 5, 2009 at 02:59:00
Specs: Windows 2000, ????

I know that USB storage devices have a serial ID that identifies the device.

Is there any similar serial id for CDs or DVDs?

If so - Is there a way to retrieve it via C#?

Thanks, Daniel.

See More: CD - Device/Serial id?

Report •

December 5, 2009 at 04:43:42
What exact information are you after? Can you give an example of a string?

I had a quick look through the api docs and couldn't find anything promising. There is some WMI stuff(that I don't understand), but minimum supported client == win xp :(.

There is normally some device strings for removable storage in the registry under "HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices" the values "\DosDevices\X:" have binary data(of what I think may be unicode) that often contains id's.

They can normally be traced back to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum" to the device type entries.

Just to put you off trying it too seriously:
1. The reg build up DOES vary between windows versions.
2. Forget about following Partitions, it's a nightmare.

Of course using the registry would probably be a hack, I can't be of much more help than that.

Batch Variable how to

Report •

December 5, 2009 at 05:55:51
First of all - thank you.

I eventually found out something in microsoft's forums:

Thanks anyway!

Report •

Related Solutions

Ask Question