T
tonylc
Hey guys,
In my burn project, I have everything working except the
cancellation of the burn. I have it setup such that when the user
initiates a "cancel" the IDiscMasterProgressEvents handler will set the
argument to true as shown:
HRESULT STDMETHODCALLTYPE CDProgressEvents::QueryCancel(boolean
*pbCancel)
{
if (*m_cancel == true)
{
*pbCancel = true;
}
return S_OK;
}
However I can hear the drive still spinning and it finishes burning
every time. Is there a reason as to why this is?
Also on a side note
1) why is it that every time I release the DiscMasterProgressEvents
after ProgressUnAdvise it returns some junk value.
2) Every time I call IDiscMaster->Release() after a close() call it
returns S_FALSE?
Do I not need to make these two calls then? Or is it implied that the
UnAdvise and Close() calls will automatically release?
But mainly why is cancelling not working?
Thanks for any suggestions/comments!
Tony
In my burn project, I have everything working except the
cancellation of the burn. I have it setup such that when the user
initiates a "cancel" the IDiscMasterProgressEvents handler will set the
argument to true as shown:
HRESULT STDMETHODCALLTYPE CDProgressEvents::QueryCancel(boolean
*pbCancel)
{
if (*m_cancel == true)
{
*pbCancel = true;
}
return S_OK;
}
However I can hear the drive still spinning and it finishes burning
every time. Is there a reason as to why this is?
Also on a side note
1) why is it that every time I release the DiscMasterProgressEvents
after ProgressUnAdvise it returns some junk value.
2) Every time I call IDiscMaster->Release() after a close() call it
returns S_FALSE?
Do I not need to make these two calls then? Or is it implied that the
UnAdvise and Close() calls will automatically release?
But mainly why is cancelling not working?
Thanks for any suggestions/comments!
Tony