CDROM_TOC structure - Need help!!!

Hello,

This is CDROM_TOC:

typedef struct _CDROM_TOC {
UCHAR Length[2];
UCHAR FirstTrack;
UCHAR LastTrack;
TRACK_DATA TrackData[MAXIMUM_NUMBER_TRACKS];
} CDROM_TOC, *PCDROM_TOC;

where the TRACK_DATA is defined like this:

typedef struct _TRACK_DATA {
UCHAR Reserved;
UCHAR Control : 4;
UCHAR Adr : 4;
UCHAR TrackNumber;
UCHAR Reserved1;
UCHAR Address[4];
} TRACK_DATA, *PTRACK_DATA;

I know what are the members - I read probably all the docs on the net
about it. My problem is the last member: Address[4]. I do not know what is
it: -it a LBA or MSF format? And whatever format is - what is the
alignment: big-endian or little-endian?

Please, help me with this!

Thank you,
Ciubotaru O. Andrei

Hello Ciubotaru,

CA> I know what are the members - I read probably all the docs on the net
CA> about it. My problem is the last member: Address[4]. I do not know what is
CA> it: -it a LBA or MSF format? And whatever format is - what is the
CA> alignment: big-endian or little-endian?

The data alignment is big-endian. As far as I remember, it is a LVA
address.


Best Regards
Pierre Duhem
Logiciels & Services Duhem, Paris (France)
xxxxx@macdisk.com