// testCDROM.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "CDROM.h" #include #include using namespace std; int __cdecl _tmain(int argc, _TCHAR* argv[]) { CDROM testCD; string locDrive = "h:"; int locRes = testCD.initDrive(locDrive); locRes = testCD.readTOC(); CDROM_TOC* locTOC = testCD.getTOC(); cout<<"Drive "<Length<LastTrack - locTOC->FirstTrack<BytesPerSector<Cylinders.QuadPart<SectorsPerTrack<TracksPerCylinder<MediaType<FirstTrack - 1; i < locTOC->LastTrack; i++) { cout<<"Track "<TrackData[i].Address[j]; } cout<<"Adress - "<TrackData[i].Adr<TrackData[i].Control<TrackData[i].TrackNumber<> x; return 0; }