Problem with CD after writing with IMAPI

  • Thread starter Thread starter Sid
  • Start date Start date
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
 
Sid,

This NG is for problems related to creation of "Windows XP Embedded". For
instance if you have program or drivers that work on XP Pro and do nor work
on XPe image that you made then we can try to make it work.
You should try some other NG that is more appropriate.

IMAPI is strange beast, I made it work in my programs long time ago so I
forgot most things that I knew then about it.
I only know that I never wanted to append data to CD, I always deleted
content of CD and written new data, so I can't help you with this one at the
moment :-(

Regards,
Slobodan

PS:
Closing is usually not a problem, but correct initialization is.
 
Sid said:
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
 
Back
Top