Until you don't eject the disc drive keeps "cached" information about medium. That's why you just need to do "eject-load" sequence (either programmatically - not recommended as some morbid devices like to fail load commands) or asking user assitance with "please load the disc after eject" message box. After the disc is loaded please use TOC information to get disc layout and just use StarBurn_CdvdBurnerGrabber_ReadRange(...) or _Read10(...) code to get "cooked' data to compare with original image you're recording (true or virtual "in-memory" one - just don't forget to call ->SeekToBegin(...) on it before verification as marker would be on the end position after recording). That's all...
David wrote:
Hello,
How to verify the written data using StarBurn SDK? I want to verify the disc that has been really written the right data after finish burning. But when i use the method 'StarBurn_CdvdBurnerGrabber_GetTOCInformation' to read the TOC information before eject the disc, it alway return an erron message, but it is okay when after eject the disc. Thanks you very much.
Thanks