how to get cdrom serial number
-
I use the software "Everest" to obtain detailed infomation about my cdroms, including description,serial number ,cach size and so on . Now I wonder how "Everest" obtain such detailed infomation. Now I just need the serial number of my cdrom. How? Thanks.
-
I use the software "Everest" to obtain detailed infomation about my cdroms, including description,serial number ,cach size and so on . Now I wonder how "Everest" obtain such detailed infomation. Now I just need the serial number of my cdrom. How? Thanks.
What about GetVolumeInformation[^] function? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
What about GetVolumeInformation[^] function? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
I use the software "Everest" to obtain detailed infomation about my cdroms, including description,serial number ,cach size and so on . Now I wonder how "Everest" obtain such detailed infomation. Now I just need the serial number of my cdrom. How? Thanks.
-
I use the software "Everest" to obtain detailed infomation about my cdroms, including description,serial number ,cach size and so on . Now I wonder how "Everest" obtain such detailed infomation. Now I just need the serial number of my cdrom. How? Thanks.
You'll need to issue IOCTL_READ_TOC_EXT[^], with parameter CDROM_READ_TOC_EX_FORMAT_CDTEXT. Your serial number will then be in CDROM_CD_TEXT_PACK_DISC_ID, or CDROM_CD_TEXT_PACK_UPC_EAN, can't remember which one :-). Note that this is for commercial music cds. (and it doesn't work for all). There is also a bar code encoded in the innermost ring of CD's and DVD (flip one over, and take a close look at the inner ring, you'll see a huge barcode). This one is returned by http://msdn.microsoft.com/en-us/library/aa394346(VS.85).aspx[^] Serial Number (this works even for R/W devices, and it's how windows differentiates between CDs or DVDS used for writing. So you'll have to decide which one you want. The first one is mostly used for commercial cdroms, and is encoded in the subtext layer on recent cdroms. You'll need a drive that can read subtext, most of them do nowadays. The other one exists on all cd's/DVD's, again the drive must be capable of reading it. Recent ones all do.
modified on Monday, April 26, 2010 6:05 AM
-
yes, I just used Win32_CDROMDrive . But the member VolumeSerialNumber is empty , and SerialNumber Data type: uint16 Access type: Read-only Number supplied by the manufacturer that identifies the physical media. Example: WD-WM3493798728. Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0, and Windows Me/98/95: This property is not available. I am on Windows XP. Thanks :)
-
You'll need to issue IOCTL_READ_TOC_EXT[^], with parameter CDROM_READ_TOC_EX_FORMAT_CDTEXT. Your serial number will then be in CDROM_CD_TEXT_PACK_DISC_ID, or CDROM_CD_TEXT_PACK_UPC_EAN, can't remember which one :-). Note that this is for commercial music cds. (and it doesn't work for all). There is also a bar code encoded in the innermost ring of CD's and DVD (flip one over, and take a close look at the inner ring, you'll see a huge barcode). This one is returned by http://msdn.microsoft.com/en-us/library/aa394346(VS.85).aspx[^] Serial Number (this works even for R/W devices, and it's how windows differentiates between CDs or DVDS used for writing. So you'll have to decide which one you want. The first one is mostly used for commercial cdroms, and is encoded in the subtext layer on recent cdroms. You'll need a drive that can read subtext, most of them do nowadays. The other one exists on all cd's/DVD's, again the drive must be capable of reading it. Recent ones all do.
modified on Monday, April 26, 2010 6:05 AM
-
yes, I just used Win32_CDROMDrive . But the member VolumeSerialNumber is empty , and SerialNumber Data type: uint16 Access type: Read-only Number supplied by the manufacturer that identifies the physical media. Example: WD-WM3493798728. Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0, and Windows Me/98/95: This property is not available. I am on Windows XP. Thanks :)
-