Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to get cdrom serial number Pin
EverettJF25-Apr-10 22:18
EverettJF25-Apr-10 22:18 
QuestionRe: how to get cdrom serial number Pin
CPallini25-Apr-10 22:27
mveCPallini25-Apr-10 22:27 
AnswerRe: how to get cdrom serial number Pin
EverettJF25-Apr-10 22:46
EverettJF25-Apr-10 22:46 
AnswerRe: how to get cdrom serial number Pin
SachinBhave25-Apr-10 23:25
SachinBhave25-Apr-10 23:25 
GeneralRe: how to get cdrom serial number Pin
EverettJF26-Apr-10 0:24
EverettJF26-Apr-10 0:24 
AnswerRe: how to get cdrom serial number Pin
SachinBhave26-Apr-10 0:42
SachinBhave26-Apr-10 0:42 
GeneralRe: how to get cdrom serial number Pin
EverettJF26-Apr-10 20:32
EverettJF26-Apr-10 20:32 
AnswerRe: how to get cdrom serial number [modified] Pin
Michel Godfroid25-Apr-10 23:26
Michel Godfroid25-Apr-10 23:26 
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 Smile | :) . 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

GeneralRe: how to get cdrom serial number Pin
EverettJF26-Apr-10 0:28
EverettJF26-Apr-10 0:28 
QuestionSelf-Extractor Pin
bharathkumarreddys25-Apr-10 21:51
bharathkumarreddys25-Apr-10 21:51 
AnswerRe: Self-Extractor Pin
CPallini25-Apr-10 22:23
mveCPallini25-Apr-10 22:23 
GeneralRe: Self-Extractor Pin
bharathkumarreddys25-Apr-10 22:31
bharathkumarreddys25-Apr-10 22:31 
GeneralRe: Self-Extractor Pin
CPallini25-Apr-10 23:18
mveCPallini25-Apr-10 23:18 
AnswerRe: Self-Extractor Pin
Cedric Moonen25-Apr-10 22:38
Cedric Moonen25-Apr-10 22:38 
GeneralRe: Self-Extractor Pin
Tim Craig26-Apr-10 8:21
Tim Craig26-Apr-10 8:21 
AnswerRe: Self-Extractor Pin
Chris Losinger26-Apr-10 1:43
professionalChris Losinger26-Apr-10 1:43 
QuestionAuto Saving of Clipboard image as Jpeg file Pin
Chandrasekharan P25-Apr-10 21:03
Chandrasekharan P25-Apr-10 21:03 
AnswerRe: Auto Saving of Clipboard image as Jpeg file Pin
Code-o-mat25-Apr-10 22:46
Code-o-mat25-Apr-10 22:46 
Question_bstr_t to std::string Pin
gmallax25-Apr-10 20:39
gmallax25-Apr-10 20:39 
AnswerRe: _bstr_t to std::string Pin
Stuart Dootson25-Apr-10 20:47
professionalStuart Dootson25-Apr-10 20:47 
GeneralRe: _bstr_t to std::string Pin
gmallax25-Apr-10 20:59
gmallax25-Apr-10 20:59 
GeneralRe: _bstr_t to std::string Pin
Nemanja Trifunovic26-Apr-10 5:14
Nemanja Trifunovic26-Apr-10 5:14 
GeneralRe: _bstr_t to std::string Pin
Stuart Dootson26-Apr-10 6:14
professionalStuart Dootson26-Apr-10 6:14 
GeneralRe: _bstr_t to std::string Pin
Nemanja Trifunovic26-Apr-10 6:44
Nemanja Trifunovic26-Apr-10 6:44 
GeneralRe: _bstr_t to std::string Pin
Stuart Dootson26-Apr-10 7:23
professionalStuart Dootson26-Apr-10 7:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.