IDiscFormat2RawCD::ReleaseMedia method (imapi2.h)
Closes a Disc-At-Once (DAO) writing session of a raw image and releases the lock.
Syntax
HRESULT ReleaseMedia();
Return value
S_OK is returned on success, but other success codes may be returned as a result of implementation. The following error codes are commonly returned on operation failure, but do not represent the only possible error values:
Return code | Description |
---|---|
|
The requested operation is only valid when media has been "prepared".
Value: 0xC0AA0602 |
|
There is currently a write operation in progress.
Value: 0xC0AA0600 |
Remarks
This method release the lock set when you called the IDiscFormat2RawCD::PrepareMedia method. You must call this method after the write operation completes or after calling IDiscFormat2RawCD::CancelWrite to cancel a writing operation.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista, Windows XP with SP2 [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | imapi2.h |
See also
IDiscFormat2RawCD::CancelWrite