recodeing is suscess all file name is support unicode
volume is view garbage string
is not volume support unicode..?
my code
PVOID pBurner=NULL;
_DV(Ex_Num = StarBurn_CdvdBurnerGrabber_Create(
&m_pvBurner,
( PCHAR )( &ExceptionText ),
sizeof( ExceptionText ),
&Status,
&failed_info,
( PCALLBACK )( RecordCallback ),
(PVOID)this,
info->byPort, info->byBus, info->byTarget, info->byLun, m_dwBufferSize
));
pBurner = pvBurner;
exception_num = StarBurn_CdvdBurnerGrabber_TestUnitReadyEx(
pBurner,
(PCHAR)&exception_text, sizeof(exception_text),
&status, &failed_info, 2);
SD_CDBURN_RECODEMESSAGE, 0, (LPARAM) _T("TestUnitReadyEx"));
if( exception_num != EN_SUCCESS )
{
__leave;
}
exception_num = StarBurn_CdvdBurnerGrabber_GetBUP(
pBurner,
(PCHAR)&exception_text, sizeof(exception_text),
&status, &failed_info,
&isBUPEnabled, &isBUPSupported );
if( exception_num != EN_SUCCESS )
{
__leave;
}
else {
exception_num = StarBurn_CdvdBurnerGrabber_SetBUP(
pBurner,
(PCHAR)&exception_text, sizeof(exception_text),
&status, &failed_info,
TRUE );
if( exception_num != EN_SUCCESS )
{
m_iBurningMsg = BURNING_MSG_UNKNOWN;
//m_pCallBackFunc( m_iBurningMsg, 0 );
__leave;
}*/
//SendMessage(m_hParent, SD_CDBURN_RECODEMESSAGE, 0, (LPARAM) _T("SetBUP"));
}
exception_num = StarBurn_CdvdBurnerGrabber_SetSpeeds(
pBurner,
(PCHAR)&exception_text, sizeof(exception_text),
&status, &failed_info,
CDVD_SPEED_IS_KBPS_MAXIMUM,
m_ulRecordSpeed);
if( exception_num != EN_SUCCESS )
{
__leave;
}
exception_num = StarBurn_CdvdBurnerGrabber_GetSpeeds(
pBurner,
(PCHAR)&exception_text, sizeof(exception_text),
&status, &failed_info,
&valCurrentReadSpeed, &valMaximumReadSpeed,
&valCurrentWriteSpeed, &valMaximumWriteSpeed );
if( exception_num != EN_SUCCESS )
{
__leave;
}
StarBurn_ISO9660JolietFileTree_BuildImage(
m_ISO9660JolietFileTree,
(PCHAR)&exception_text, sizeof(exception_text),
&status,
m_DeviceInfoList[m_iSelDevice].track_info.m__LONG__NextWritableAddress,
lTreeLevel, //ISO9660_TREE_LEVEL
TRUE,
(PCHAR)m_szCDTitle,//UNICODE
"Publisher",
"Application"
);
exception_num = StarBurn_CdvdBurnerGrabber_SendOPC(
pBurner,
(PCHAR)&exception_text, sizeof(exception_text),
&status, &failed_info );
//SendMessage(m_hParent, SD_CDBURN_RECODEMESSAGE, 0, (LPARAM) _T("SendOPC"));
if( exception_num != EN_SUCCESS )
{
isSendOPCSuccessful = FALSE;
}
exception_num =
StarBurn_CdvdBurnerGrabber_TrackAtOnceFromTree(
pBurner,
(PCHAR)&exception_text, sizeof(exception_text),
&status, &failed_info,
m_ISO9660JolietFileTree,
TRUE, // FALSE
FALSE,
TRUE,
WRITE_REPORT_DELAY_IN_SECONDS,
BUFFER_STATUS_REPORT_DELAY_IN_SECONDS
);
if( exception_num != EN_SUCCESS )
{
__leave;
}
exception_num = StarBurn_CdvdBurnerGrabber_CloseSession(
pBurner,
(PCHAR)&exception_text, sizeof(exception_text),
&status, &failed_info );
if( exception_num != EN_SUCCESS )
{
m_iBurningMsg = BURNING_MSG_UNKNOWN;
__leave;
}
|