S
Sid
Hi all,
I implemented IMAPI for my application (using the C Style interfaces).
I however notice some strange behaviour in my implementation. When I
write data to a CD R (already containing data) using my IMAPI
implementation, the existing data on the CD disappears! I only see the
IMAPI added data. Moreover I am then able to view the CD through Win
Explorer, and add data to it using the XP cd Wizard. Another problem is
that on such a cd (which has data written by my IMAPI implementation),
I am unable to add data using an other application (which uses ASAPI to
add data). I can just guess that maybe my IMPAI implementation is
creating a new file system on the disc that the ASAPI is unable to
read. Could you have any idea about what I may be doing wrong? The
exact steps in my IMAPI implementation are:
CoCreateInstance of DiscMaster object .(returns pIDiscMaster)
Call Open on pIDiscMaster)
SetActiveDiscMasterFormat for Joliet format
SetActiveDiscRecorder for a disc recorder got by EnumDiscRecorders
Create Staging area, get a IStorage pointer fo this
Call IJolietDiscMaster_AddData -
IJolietDiscMaster_AddData(pIJolietDiscMaster, pstg, 1)
Call RecordDisc - IDiscMaster_RecordDisc (pIDiscMaster,FALSE, FALSE)
Clear up by calling:
IDiscMaster_ClearFormatContent(pIDiscMaster),
IJolietDiscMaster_Release(pIJolietDiscMaster);
IDiscRecorder_OpenExclusive(pIDiscRecorder);
IDiscRecorder_Close(pIDiscRecorder);
IDiscRecorder_Release(pIDiscRecorder);
IDiscMaster_Close(pIDiscMaster);
IDiscMaster_Release(pIDiscMaster);
WOuld be really grateful if someone could give me some pointers on what
I may be doing wrong (eg not closing properly etc).
Thanks for your time,
Sid
I implemented IMAPI for my application (using the C Style interfaces).
I however notice some strange behaviour in my implementation. When I
write data to a CD R (already containing data) using my IMAPI
implementation, the existing data on the CD disappears! I only see the
IMAPI added data. Moreover I am then able to view the CD through Win
Explorer, and add data to it using the XP cd Wizard. Another problem is
that on such a cd (which has data written by my IMAPI implementation),
I am unable to add data using an other application (which uses ASAPI to
add data). I can just guess that maybe my IMPAI implementation is
creating a new file system on the disc that the ASAPI is unable to
read. Could you have any idea about what I may be doing wrong? The
exact steps in my IMAPI implementation are:
CoCreateInstance of DiscMaster object .(returns pIDiscMaster)
Call Open on pIDiscMaster)
SetActiveDiscMasterFormat for Joliet format
SetActiveDiscRecorder for a disc recorder got by EnumDiscRecorders
Create Staging area, get a IStorage pointer fo this
Call IJolietDiscMaster_AddData -
IJolietDiscMaster_AddData(pIJolietDiscMaster, pstg, 1)
Call RecordDisc - IDiscMaster_RecordDisc (pIDiscMaster,FALSE, FALSE)
Clear up by calling:
IDiscMaster_ClearFormatContent(pIDiscMaster),
IJolietDiscMaster_Release(pIJolietDiscMaster);
IDiscRecorder_OpenExclusive(pIDiscRecorder);
IDiscRecorder_Close(pIDiscRecorder);
IDiscRecorder_Release(pIDiscRecorder);
IDiscMaster_Close(pIDiscMaster);
IDiscMaster_Release(pIDiscMaster);
WOuld be really grateful if someone could give me some pointers on what
I may be doing wrong (eg not closing properly etc).
Thanks for your time,
Sid