Hi,
I'm using code similar to this.
Code:
bool bLevel2 = true;
m_ExceptionNo = StarBurn_ISO9660JolietFileTree_Create(
&m_pISO9660JolietFileTree,
m_ExceptionText, sizeof(m_ExceptionText),
&m_Status,
Callback_static, (PVOID)this,
TRUE,
FALSE,
bLevel2 ? TRUE : FALSE,
FILE_TREE_JOLIET);
void *pRoot = NULL;
pRoot = StarBurn_ISO9660JolietFileTree_GetRoot(m_pISO9660JolietFileTree);
m_ExceptionNo = StarBurn_ISO9660JolietFileTree_Add(
m_pISO9660JolietFileTree,
m_ExceptionText, sizeof(m_ExceptionText),
&m_Status,
(char *)path.c_str(),
folderName.length() == 0 ? NULL : (char *)folderName.c_str(),
FILE_TIME_LAST_WRITE,
&pRoot);
m_ExceptionNo = StarBurn_ISO9660JolietFileTree_BuildImage(
m_pISO9660JolietFileTree,
m_ExceptionText, sizeof(m_ExceptionText),
&m_Status,
0,
8,
FALSE,
(char *)VolumeSetName.c_str(),
(char *)PublisherPreparerName.c_str(),
(char *)ApplicationName.c_str());
...
exceptionNo = StarBurn_CdvdBurnerGrabber_TrackAtOnceFromTree(
CStarBurnCDImageBurnerGrabber,
ExceptionText, sizeof(ExceptionText),
&Status, &CDBFailureInfo,
m_Image->GetImagePointer(), // m_pISO9660JolietFileTree
FALSE, // TRUE -- MODE2/Form1 vs FALSE -- MODE1, would be IGNORED for RAW images
m_bTestWrite ? TRUE : FALSE,
m_bNextSessionAllowed ? TRUE : FALSE, // TRUE, // Next session allowed
WRITE_REPORT_DELAY_IN_SECONDS,
BUFFER_STATUS_REPORT_DELAY_IN_SECONDS);
Thanks,
Jory