Unsupported media state while drive becoming ready
I have consistently seenIDiscFormat2Data::get_CurrentMediaStatusreturn a state of IMAPI_FORMAT2_DATA_MEDIA_STATE_UNSUPPORTED_MEDIA after I insert a blank recordable disc, after the drive becomes ready. There seems to be a transient state that exists immediately after the drive becomes ready. Prior to this state, while the drive is becoming ready, theget_CurrentMediaStatusmethod correctly returns an HRESULT of E_IMAPI_RECORDER_MEDIA_BECOMING_READY; then, immediately after becoming ready, it returns S_OK but reports a media state of unsupported. If you call it subsequently, it will return S_OK and correctly report the state as IMAPI_FORMAT2_DATA_MEDIA_STATE_BLANK.
It appears that this problem has something to do with the auto-insert notification (aka media change notification, MCN). The problem occurs at about the same time Vista autoplays the disc and displays a blank media popup. I also noticed that if I had calledIDiscRecorder2::DisableMcn prior to the error, the error becomes permanent. That is,everytime I callget_CurrentMediaStatusafter the drive becomes ready, it reports an unsupported media state one time (no matter how long I wait until after the drive becomes ready). I have to reboot the system to fix the problem. If I don't disable the MCN first, the error only occurs if I call get_CurrentMediaStatus immediately after the drive becomes ready. If I wait a second or two, I don't see the problem.

