IMAPI Return Values

Header: imapi2error.h

The IMAPI methods return non-negative values, (typically S_OK) if the method was successful. The IMAPI methods return success or error codes from Winerror.h, Imapi2error.h, or Imapi2fserror.h, on failure.

The following success and error codes are defined.

SymbolicCodeDescription
E_IMAPI_BURN_VERIFICATION_FAILED0xC0AA0007The disc did not pass burn verification and may contain corrupt data or be unusable.
E_IMAPI_REQUEST_CANCELLED0xC0AA0002The request was canceled.
E_IMAPI_RECORDER_REQUIRED0xC0AA0003The request requires a current disc recorder to be selected.
S_IMAPI_WRITE_NOT_IN_PROGRESS0x00AA0302No write operation is currently in progress.
S_IMAPI_SPEEDADJUSTED0x00AA0004The requested write speed was not supported by the drive and the speed was adjusted.
S_IMAPI_ROTATIONADJUSTED0x00AA0005The requested rotation type was not supported by the drive and the rotation type was adjusted.
S_IMAPI_BOTHADJUSTED0x00AA0006The requested write speed and rotation type were not supported by the drive and they were both adjusted.
S_IMAPI_COMMAND_HAS_SENSE_DATA0x00AA0200The device accepted the command, but returned sense data, indicating an error.
E_IMAPI_RAW_IMAGE_IS_READ_ONLY0x80AA0A00The image has become read-only due to a call to IRawCDImageCreator::CreateResultImage . As a result the object can no longer be modified.
E_IMAPI_RAW_IMAGE_TOO_MANY_TRACKS0x80AA0A01No more tracks may be added. CD media is restricted to a range of 1-99 tracks.
E_IMAPI_RAW_IMAGE_NO_TRACKS0x80AA0A03Tracks must be added to the image before using this function.
E_IMAPI_RAW_IMAGE_SECTOR_TYPE_NOT_SUPPORTED0x80AA0A02The requested sector type is not supported.
E_IMAPI_RAW_IMAGE_TRACKS_ALREADY_ADDED0x80AA0A04Tracks may not be added to the image prior to the use of this function.
E_IMAPI_RAW_IMAGE_INSUFFICIENT_SPACE0x80AA0A05Adding this track would exceed the limitations of the start of the leadout.
E_IMAPI_RAW_IMAGE_TOO_MANY_TRACK_INDEXES0x80AA0A06Adding this track would exceed the 99 index limit.
E_IMAPI_RAW_IMAGE_TRACK_INDEX_NOT_FOUND0x80AA0A07The specified LBA offset is not in the list of track indexes.
S_IMAPI_RAW_IMAGE_TRACK_INDEX_ALREADY_EXISTS0x00AA0A08The specified LBA offset is already in the list of track indexes.
E_IMAPI_RAW_IMAGE_TRACK_INDEX_OFFSET_ZERO_CANNOT_BE_CLEARED0x80AA0A09Index 1 (LBA offset zero) cannot be cleared.
E_IMAPI_RAW_IMAGE_TRACK_INDEX_TOO_CLOSE_TO_OTHER_INDEX0x80AA0A0AEach index must have a minimum size of ten sectors.
E_IMAPI_RECORDER_NO_SUCH_MODE_PAGE0xC0AA0201The device reported that the requested mode page (and type) is not present.
E_IMAPI_RECORDER_MEDIA_NO_MEDIA0xC0AA0202There is no media in the device.
E_IMAPI_RECORDER_MEDIA_INCOMPATIBLE0xC0AA0203The media is not compatible or of unknown physical format.
E_IMAPI_RECORDER_MEDIA_UPSIDE_DOWN0xC0AA0204The media is inserted upside down.
E_IMAPI_RECORDER_MEDIA_BECOMING_READY0xC0AA0205The drive reported that it is in the process of becoming ready. Please try the request again later.
E_IMAPI_RECORDER_MEDIA_FORMAT_IN_PROGRESS0xC0AA0206The media is currently being formatted. Please wait for the format to complete before attempting to use the media.
E_IMAPI_RECORDER_MEDIA_BUSY0xC0AA0207The drive reported that it is performing a long-running operation, such as finishing a write. The drive may be unusable for a long period of time.
E_IMAPI_RECORDER_INVALID_MODE_PARAMETERS0xC0AA0208The drive reported that the combination of parameters provided in the mode page for a MODE SELECT command were not supported.
E_IMAPI_RECORDER_MEDIA_WRITE_PROTECTED0xC0AA0209The drive reported that the media is write protected.
E_IMAPI_RECORDER_NO_SUCH_FEATURE0xC0AA020AThe feature page requested is not supported by the device.
E_IMAPI_RECORDER_FEATURE_IS_NOT_CURRENT0xC0AA020BThe feature page requested is supported, but is not marked as current.
E_IMAPI_RECORDER_GET_CONFIGURATION_NOT_SUPPORTED0xC0AA020CThe drive does not support the GET CONFIGURATION command.
E_IMAPI_RECORDER_COMMAND_TIMEOUT0xC0AA020DThe device failed to accept the command within the timeout period. This may be caused by the device having entered an inconsistent state, or the timeout value for the command may need to be increased.
E_IMAPI_RECORDER_DVD_STRUCTURE_NOT_PRESENT0xC0AA020EThe DVD structure is not present. This may be caused by incompatible drive/medium used.
E_IMAPI_RECORDER_MEDIA_SPEED_MISMATCH0xC0AA020FThe media's speed is incompatible with the device. This may be caused by using higher or lower speed media than the range of speeds supported by the device.
E_IMAPI_RECORDER_LOCKED0xC0AA0210The device associated with this recorder during the last operation has been exclusively locked, causing this operation to fail.
E_IMAPI_RECORDER_CLIENT_NAME_IS_NOT_VALID0xC0AA0211The client name is not valid.
E_IMAPI_RECORDER_INVALID_RESPONSE_FROM_DEVICE0xC0AA02FFThe device reported unexpected or invalid data for a command.
E_IMAPI_LOSS_OF_STREAMING0xC0AA0300The write failed because the drive did not receive data quickly enough to continue writing. Moving the source data to the local computer, reducing the write speed, or enabling a "buffer underrun free" setting may resolve this issue.
E_IMAPI_UNEXPECTED_RESPONSE_FROM_DEVICE0xC0AA0301The write failed because the drive returned error information that could not be recovered from.
E_IMAPI_DF2DATA_WRITE_IN_PROGRESS0xC0AA0400There is currently a write operation in progress.
E_IMAPI_DF2DATA_WRITE_NOT_IN_PROGRESS0xC0AA0401There is no write operation currently in progress.
E_IMAPI_DF2DATA_INVALID_MEDIA_STATE0xC0AA0402The requested operation is only valid with supported media.
E_IMAPI_DF2DATA_STREAM_NOT_SUPPORTED0xC0AA0403The provided stream to write is not supported.
E_IMAPI_DF2DATA_STREAM_TOO_LARGE_FOR_CURRENT_MEDIA0xC0AA0404The provided stream to write is too large for the currently inserted media.
E_IMAPI_DF2DATA_MEDIA_NOT_BLANK0xC0AA0405Overwriting non-blank media is not allowed without the ForceOverwrite property set to VARIANT_TRUE.
E_IMAPI_DF2DATA_MEDIA_IS_NOT_SUPPORTED0xC0AA0406The current media type is unsupported.
E_IMAPI_DF2DATA_RECORDER_NOT_SUPPORTED0xC0AA0407This device does not support the operations required by this disc format.
E_IMAPI_DF2DATA_CLIENT_NAME_IS_NOT_VALID0xC0AA0408The client name is not valid.
E_IMAPI_DF2TAO_WRITE_IN_PROGRESS0xC0AA0500There is currently a write operation in progress.
E_IMAPI_DF2TAO_WRITE_NOT_IN_PROGRESS0xC0AA0501There is no write operation currently in progress.
E_IMAPI_DF2TAO_MEDIA_IS_NOT_PREPARED0xC0AA0502The requested operation is only valid when media has been "prepared".
E_IMAPI_DF2TAO_MEDIA_IS_PREPARED0xC0AA0503The requested operation is not valid when media has been "prepared" but not released.
E_IMAPI_DF2TAO_PROPERTY_FOR_BLANK_MEDIA_ONLY0xC0AA0504The property cannot be changed once the media has been written to.
E_IMAPI_DF2TAO_TABLE_OF_CONTENTS_EMPTY_DISC0xC0AA0505The table of contents cannot be retrieved from an empty disc.
E_IMAPI_DF2TAO_MEDIA_IS_NOT_BLANK0xC0AA0506Only blank CD-R/RW media is supported.
E_IMAPI_DF2TAO_MEDIA_IS_NOT_SUPPORTED0xC0AA0507Only blank CD-R/RW media is supported.
E_IMAPI_DF2TAO_TRACK_LIMIT_REACHED0xC0AA0508CD-R and CD-RW media support a maximum of 99 audio tracks.
E_IMAPI_DF2TAO_NOT_ENOUGH_SPACE0xC0AA0509There is not enough space left on the media to add the provided audio track.
E_IMAPI_DF2TAO_NO_RECORDER_SPECIFIED0xC0AA050AYou cannot prepare the media until you choose a recorder to use.
E_IMAPI_DF2TAO_INVALID_ISRC0xC0AA050BThe ISRC provided is not valid.
E_IMAPI_DF2TAO_INVALID_MCN0xC0AA050CThe Media Catalog Number provided is not valid.
E_IMAPI_DF2TAO_STREAM_NOT_SUPPORTED0xC0AA050DThe provided audio stream is not valid.
E_IMAPI_DF2TAO_RECORDER_NOT_SUPPORTED0xC0AA050EThis device does not support the operations required by this disc format.
E_IMAPI_DF2TAO_CLIENT_NAME_IS_NOT_VALID0xC0AA050FThe client name is not valid.
E_IMAPI_DF2RAW_WRITE_IN_PROGRESS0xC0AA0600There is currently a write operation in progress.
E_IMAPI_DF2RAW_WRITE_NOT_IN_PROGRESS0xC0AA0601There is no write operation currently in progress.
E_IMAPI_DF2RAW_MEDIA_IS_NOT_PREPARED0xC0AA0602The requested operation is only valid when media has been "prepared".
E_IMAPI_DF2RAW_MEDIA_IS_PREPARED0xC0AA0603The requested operation is not valid when media has been "prepared" but not released.
E_IMAPI_DF2RAW_CLIENT_NAME_IS_NOT_VALID0xC0AA0604The client name is not valid.
E_IMAPI_DF2RAW_MEDIA_IS_NOT_BLANK0xC0AA0606Only blank CD-R/RW media is supported.
E_IMAPI_DF2RAW_MEDIA_IS_NOT_SUPPORTED0xC0AA0607Only blank CD-R/RW media is supported.
E_IMAPI_DF2RAW_NOT_ENOUGH_SPACE0xC0AA0609There is not enough space on the media to add the provided session.
E_IMAPI_DF2RAW_NO_RECORDER_SPECIFIED0xC0AA060AYou cannot prepare the media until you choose a recorder to use.
E_IMAPI_DF2RAW_STREAM_NOT_SUPPORTED0xC0AA060DThe provided audio stream is not valid.
E_IMAPI_DF2RAW_DATA_BLOCK_TYPE_NOT_SUPPORTED0xC0AA060EThe requested data block type is not supported by the current device.
E_IMAPI_DF2RAW_STREAM_LEADIN_TOO_SHORT0xC0AA060FThe stream does not contain a sufficient number of sectors in the leadin for the current media.
E_IMAPI_DF2RAW_RECORDER_NOT_SUPPORTED0xC0AA0610This device does not support the operations required by this disc format.
E_IMAPI_ERASE_RECORDER_IN_USE0x80AA0900The format is currently using the disc recorder for an erase operation. Please wait for the erase to complete before attempting to set or clear the current disc recorder.
E_IMAPI_ERASE_ONLY_ONE_RECORDER_SUPPORTED0x80AA0901The erase format only supports one recorder. You must clear the current recorder before setting a new one.
E_IMAPI_ERASE_DISC_INFORMATION_TOO_SMALL0x80AA0902The drive did not report sufficient data for a READ DISC INFORMATION command. The drive may not be supported, or the media may not be correct.
E_IMAPI_ERASE_MODE_PAGE_2A_TOO_SMALL0x80AA0903The drive did not report sufficient data for a MODE SENSE (page 0x2A) command. The drive may not be supported, or the media may not be correct.
E_IMAPI_ERASE_MEDIA_IS_NOT_ERASABLE0x80AA0904The drive reported that the media is not erasable.
E_IMAPI_ERASE_DRIVE_FAILED_ERASE_COMMAND0x80AA0905The drive failed the erase command.
E_IMAPI_ERASE_TOOK_LONGER_THAN_ONE_HOUR0x80AA0906The drive did not complete the erase in one hour. The drive may require a power cycle, media removal, or other manual intervention to resume proper operation. Note: Currently, this value will also be returned if an attempt to perform an erase on CD-RW or DVD-RW media via the IDiscFormat2Erase interface fails as a result of the media being bad.
E_IMAPI_ERASE_UNEXPECTED_DRIVE_RESPONSE_DURING_ERASE0x80AA0907The drive returned an unexpected error during the erase. The media may be unusable, the erase may be complete, or the drive may still be in the process of erasing the disc.
E_IMAPI_ERASE_DRIVE_FAILED_SPINUP_COMMAND0x80AA0908The drive returned an error for a START UNIT (spinup) command. Manual intervention may be required.
E_IMAPI_ERASE_MEDIA_IS_NOT_SUPPORTED0xC0AA0909The current media type is unsupported.
E_IMAPI_ERASE_RECORDER_NOT_SUPPORTED0xC0AA090AThis device does not support the operations required by this disc format.
E_IMAPI_ERASE_CLIENT_NAME_IS_NOT_VALID0xC0AA090BThe client name is not valid.
IMAPI_E_FSI_INTERNAL_ERROR0xC0AAB100Internal error occurred: %1!ls!.
IMAPI_E_INVALID_PARAM0xC0AAB101The value specified for parameter '%1!ls!' is not valid.
IMAPI_E_READONLY0xC0AAB102FileSystemImage object is in read only mode.
IMAPI_E_NO_OUTPUT0xC0AAB103No output file system specified.
IMAPI_E_INVALID_VOLUME_NAME0xC0AAB104The specified Volume Identifier is either too long or contains one or more invalid characters.
IMAPI_E_INVALID_DATE0xC0AAB105Invalid file dates. %1!ls! time is earlier than %2!ls! time.
IMAPI_E_FILE_SYSTEM_NOT_EMPTY0xC0AAB106The file system must be empty for this function.
IMAPI_E_FILE_SYSTEM_CHANGE_NOT_ALLOWED0xC0AAB163You cannot change the file system specified for creation, because the file system from the imported session and the file system in the current session do not match.
IMAPI_E_NOT_FILE0xC0AAB108Specified path '%1!ls!' does not identify a file.
IMAPI_E_NOT_DIR0xC0AAB109Specified path '%1!ls!' does not identify a directory.
IMAPI_E_DIR_NOT_EMPTY0xC0AAB10AThe directory '%1!s!' is not empty.
IMAPI_E_NOT_IN_FILE_SYSTEM0xC0AAB10Bls!' is not part of the file system. It must be added to complete this operation.
IMAPI_E_INVALID_PATH0xC0AAB110Path '%1!s!' is badly formed or contains invalid characters.
IMAPI_E_RESTRICTED_NAME_VIOLATION0xC0AAB111The name '%1!ls!' specified is not legal: Name of file or directory object created while the UseRestrictedCharacterSet property is set may only contain ANSI characters.
IMAPI_E_DUP_NAME0xC0AAB112ls!' name already exists.
IMAPI_E_NO_UNIQUE_NAME0xC0AAB113Attempt to add '%1!ls!' failed: cannot create a file-system-specific unique name for the %2!ls! file system.
IMAPI_E_ITEM_NOT_FOUND0xC0AAB118Cannot find item '%1!ls!' in FileSystemImage hierarchy.
IMAPI_E_FILE_NOT_FOUND0xC0AAB119The file '%1!s!' not found in FileSystemImage hierarchy.
IMAPI_E_DIR_NOT_FOUND0xC0AAB11AThe directory '%1!s!' not found in FileSystemImage hierarchy.
IMAPI_E_IMAGE_SIZE_LIMIT0xC0AAB120Adding '%1!ls!' would result in a result image having a size larger than the current configured limit.
IMAPI_E_IMAGE_TOO_BIG0xC0AAB121Value specified for FreeMediaBlocks property is too small for estimated image size based on current data.
IMAPI_E_IMAGEMANAGER_IMAGE_NOT_ALIGNED0xC0AAB200The image is not aligned on a 2kb sector boundary.
IMAPI_E_IMAGEMANAGER_NO_VALID_VD_FOUND0xC0AAB201The image does not contain a valid volume descriptor.
IMAPI_E_IMAGEMANAGER_NO_IMAGE0xC0AAB202The image has not been set using the IIsoImageManager::SetPath or IIsoImageManager::SetStream methods prior to calling the IIsoImageManager::Validate method.
IMAPI_E_IMAGEMANAGER_IMAGE_TOO_BIG0xC0AAB203The provided image is too large to be validated as the size exceeds MAXLONG .
IMAPI_E_DATA_STREAM_INCONSISTENCY0xC0AAB128Data stream supplied for file '%1!ls!' is inconsistent: expected %2!I64d! bytes, found %3!I64d!.
IMAPI_E_DATA_STREAM_READ_FAILURE0xC0AAB129Cannot read data from stream supplied for file '%1!ls!'.
IMAPI_E_DATA_STREAM_CREATE_FAILURE0xC0AAB12AThe following error was encountered when trying to create data stream for file '%1!ls!':
IMAPI_E_DIRECTORY_READ_FAILURE0xC0AAB12BFailure enumerating files in the directory tree is inaccessible due to permissions.
IMAPI_E_TOO_MANY_DIRS0xC0AAB130This file system image has too many directories for the %1!ls! file system.
IMAPI_E_ISO9660_LEVELS0xC0AAB131ISO9660 is limited to 8 levels of directories.
IMAPI_E_DATA_TOO_BIG0xC0AAB132Data file is too large for '%1!ls!' file system.
IMAPI_E_STASHFILE_OPEN_FAILURE0xC0AAB138Cannot initialize %1!ls! stash file.
IMAPI_E_STASHFILE_SEEK_FAILURE0xC0AAB139Error seeking in '%1!ls!' stash file.
IMAPI_E_STASHFILE_WRITE_FAILURE0xC0AAB13AError encountered writing to '%1!ls!' stash file.
IMAPI_E_STASHFILE_READ_FAILURE0xC0AAB13BError encountered reading from '%1!ls!' stash file.
IMAPI_E_INVALID_WORKING_DIRECTORY0xC0AAB140The working directory '%1!ls!' is not valid.
IMAPI_E_WORKING_DIRECTORY_SPACE0xC0AAB141Cannot set working directory to '%1!ls!'. Space available is %2!I64d! bytes, approximately %3!I64d! bytes required.
IMAPI_E_STASHFILE_MOVE0xC0AAB142Attempt to move the data stash file to directory '%1!ls!' was not successful.
IMAPI_E_BOOT_IMAGE_DATA0xC0AAB148The boot object could not be added to the image.
IMAPI_E_BOOT_OBJECT_CONFLICT0xC0AAB149A boot object can only be included in an initial disc image.
IMAPI_E_BOOT_EMULATION_IMAGE_SIZE_MISMATCH0xC0AAB14AThe emulation type requested does not match the boot image size.
IMAPI_E_EMPTY_DISC0xC0AAB150Optical media is empty.
IMAPI_E_NO_SUPPORTED_FILE_SYSTEM0xC0AAB151The specified disc does not contain one of the supported file systems.
IMAPI_E_FILE_SYSTEM_NOT_FOUND0xC0AAB152The specified disc does not contain a '%1!ls!' file system.
IMAPI_E_FILE_SYSTEM_READ_CONSISTENCY_ERROR0xC0AAB153Consistency error encountered while importing the '%1!ls!' file system.
IMAPI_E_FILE_SYSTEM_FEATURE_NOT_SUPPORTED0xC0AAB154The '%1!ls!'file system on the selected disc contains a feature not supported for import: %2!ls!.
IMAPI_E_IMPORT_TYPE_COLLISION_FILE_EXISTS_AS_DIRECTORY0xC0AAB155Could not import %2!ls! file system from disc. The file '%1!ls!' already exists within the image hierarchy as a directory.
IMAPI_E_IMPORT_SEEK_FAILURE0xC0AAB156Cannot seek to block %1!I64d! on source disc.
IMAPI_E_IMPORT_READ_FAILURE0xC0AAB157Import from previous session failed due to an error reading a block on the media (most likely block %1!u!).
IMAPI_E_DISC_MISMATCH0xC0AAB158Current disc is not the same one from which file system was imported.
IMAPI_E_IMPORT_MEDIA_NOT_ALLOWED0xC0AAB159IMAPI does not allow multi-session with the current media type.
IMAPI_E_UDF_NOT_WRITE_COMPATIBLE0xC0AAB15AIMAPI cannot do multi-session with the current media because it does not support a compatible UDF revision for write.
IMAPI_E_INCOMPATIBLE_MULTISESSION_TYPE0xC0AAB15BIMAPI does not support the multisession type requested.
IMAPI_E_INCOMPATIBLE_PREVIOUS_SESSION0xC0AAB133Operation failed due to an incompatible layout of the previous session imported from the medium.
IMAPI_E_NO_COMPATIBLE_MULTISESSION_TYPE0xC0AAB15CIMAPI supports none of the multisession type(s) provided on the current media. Note: IFileSystemImage::ImportFileSystem method returns this error if there is no media in the recording device.
IMAPI_E_MULTISESSION_NOT_SET0xC0AAB15DMultisessionInterfaces property must be set prior calling this method.
IMAPI_E_IMPORT_TYPE_COLLISION_DIRECTORY_EXISTS_AS_FILE0xC0AAB15ECould not import %2!ls! file system from disc. The directory '%1!ls!' already exists within the image hierarchy as a file.
IMAPI_E_BAD_MULTISESSION_PARAMETER0xC0AAB162One of multisession parameters cannot be retrieved or has a wrong value.
IMAPI_S_IMAGE_FEATURE_NOT_SUPPORTED0x00AAB15FThis feature is not supported for the current file system revision. The image will be created without this feature.
149 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.