IMAPI Return Values

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.

Constant/value Description
E_IMAPI_BURN_VERIFICATION_FAILED
(HRESULT)0xC0AA0007L
The disc did not pass burn verification and may contain corrupt data or be unusable.
E_IMAPI_REQUEST_CANCELLED
(HRESULT)0xC0AA0002
The request was canceled.
E_IMAPI_RECORDER_REQUIRED
(HRESULT)0xC0AA0003
The request requires a current disc recorder to be selected.
S_IMAPI_WRITE_NOT_IN_PROGRESS
(HRESULT)0x00AA0302L
No write operation is currently in progress.
S_IMAPI_SPEEDADJUSTED
(HRESULT)0x00AA0004
The requested write speed was not supported by the drive and the speed was adjusted.
S_IMAPI_ROTATIONADJUSTED
(HRESULT)0x00AA0005
The requested rotation type was not supported by the drive and the rotation type was adjusted.
S_IMAPI_BOTHADJUSTED
(HRESULT)0x00AA0006
The requested write speed and rotation type were not supported by the drive and they were both adjusted.
S_IMAPI_COMMAND_HAS_SENSE_DATA
(HRESULT)0x00AA0200
The device accepted the command, but returned sense data, indicating an error.
E_IMAPI_RAW_IMAGE_IS_READ_ONLY
(HRESULT)0x80AA0A00L
The 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_TRACKS
(HRESULT)0x80AA0A01L
No more tracks may be added. CD media is restricted to a range of 1-99 tracks.
E_IMAPI_RAW_IMAGE_NO_TRACKS
(HRESULT)0x80AA0A03L
Tracks must be added to the image before using this function.
E_IMAPI_RAW_IMAGE_SECTOR_TYPE_NOT_SUPPORTED
(HRESULT)0x80AA0A02L
The requested sector type is not supported.
E_IMAPI_RAW_IMAGE_TRACKS_ALREADY_ADDED
(HRESULT)0x80AA0A04L
Tracks may not be added to the image prior to the use of this function.
E_IMAPI_RAW_IMAGE_INSUFFICIENT_SPACE
(HRESULT)0x80AA0A05L
Adding this track would exceed the limitations of the start of the leadout.
E_IMAPI_RAW_IMAGE_TOO_MANY_TRACK_INDEXES
(HRESULT)0x80AA0A06L
Adding this track would exceed the 99 index limit.
E_IMAPI_RAW_IMAGE_TRACK_INDEX_NOT_FOUND
(HRESULT)0x80AA0A07L
The specified LBA offset is not in the list of track indexes.
S_IMAPI_RAW_IMAGE_TRACK_INDEX_ALREADY_EXISTS
(HRESULT)0x00AA0A08L
The specified LBA offset is already in the list of track indexes.
E_IMAPI_RAW_IMAGE_TRACK_INDEX_OFFSET_ZERO_CANNOT_BE_CLEARED
(HRESULT)0x80AA0A09L
Index 1 (LBA offset zero) cannot be cleared.
E_IMAPI_RAW_IMAGE_TRACK_INDEX_TOO_CLOSE_TO_OTHER_INDEX
(HRESULT)0x80AA0A0AL
Each index must have a minimum size of ten sectors.
E_IMAPI_RECORDER_NO_SUCH_MODE_PAGE
(HRESULT)0xC0AA0201
The device reported that the requested mode page (and type) is not present.
E_IMAPI_RECORDER_MEDIA_NO_MEDIA
(HRESULT)0xC0AA0202
There is no media in the device.
E_IMAPI_RECORDER_MEDIA_INCOMPATIBLE
(HRESULT)0xC0AA0203
The media is not compatible or of unknown physical format.
E_IMAPI_RECORDER_MEDIA_UPSIDE_DOWN
(HRESULT)0xC0AA0204
The media is inserted upside down.
E_IMAPI_RECORDER_MEDIA_BECOMING_READY
(HRESULT)0xC0AA0205
The drive reported that it is in the process of becoming ready. Please try the request again later.
E_IMAPI_RECORDER_MEDIA_FORMAT_IN_PROGRESS
(HRESULT)0xC0AA0206
The media is currently being formatted. Please wait for the format to complete before attempting to use the media.
E_IMAPI_RECORDER_MEDIA_BUSY
(HRESULT)0xC0AA0207
The 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_PARAMETERS
(HRESULT)0xC0AA0208
The 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_PROTECTED
(HRESULT)0xC0AA0209
The drive reported that the media is write protected.
E_IMAPI_RECORDER_NO_SUCH_FEATURE
(HRESULT)0xC0AA020A
The feature page requested is not supported by the device.
E_IMAPI_RECORDER_FEATURE_IS_NOT_CURRENT
(HRESULT)0xC0AA020B
The feature page requested is supported, but is not marked as current.
E_IMAPI_RECORDER_GET_CONFIGURATION_NOT_SUPPORTED
(HRESULT)0xC0AA020C
The drive does not support the GET CONFIGURATION command.
E_IMAPI_RECORDER_COMMAND_TIMEOUT
(HRESULT)0xC0AA020D
The 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_PRESENT
(HRESULT)0xC0AA020E
The DVD structure is not present. This may be caused by incompatible drive/medium used.
E_IMAPI_RECORDER_MEDIA_SPEED_MISMATCH
(HRESULT)0xC0AA020F
The 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_LOCKED
(HRESULT)0xC0AA0210
The 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_VALID
(HRESULT)0xC0AA0211
The client name is not valid.
E_IMAPI_RECORDER_INVALID_RESPONSE_FROM_DEVICE
(HRESULT)0xC0AA02FF
The device reported unexpected or invalid data for a command.
E_IMAPI_LOSS_OF_STREAMING
(HRESULT)0xC0AA0300
The 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_DEVICE
(HRESULT)0xC0AA0301
The write failed because the drive returned error information that could not be recovered from.
E_IMAPI_DF2DATA_WRITE_IN_PROGRESS
(HRESULT)0xC0AA0400
There is currently a write operation in progress.
E_IMAPI_DF2DATA_WRITE_NOT_IN_PROGRESS
(HRESULT)0xC0AA0401
There is no write operation currently in progress.
E_IMAPI_DF2DATA_INVALID_MEDIA_STATE
(HRESULT)0xC0AA0402
The requested operation is only valid with supported media.
E_IMAPI_DF2DATA_STREAM_NOT_SUPPORTED
(HRESULT)0xC0AA0403
The provided stream to write is not supported.
E_IMAPI_DF2DATA_STREAM_TOO_LARGE_FOR_CURRENT_MEDIA
(HRESULT)0xC0AA0404
The provided stream to write is too large for the currently inserted media.
E_IMAPI_DF2DATA_MEDIA_NOT_BLANK
(HRESULT)0xC0AA0405
Overwriting non-blank media is not allowed without the ForceOverwrite property set to VARIANT_TRUE.
E_IMAPI_DF2DATA_MEDIA_IS_NOT_SUPPORTED
(HRESULT)0xC0AA0406
The current media type is unsupported.
E_IMAPI_DF2DATA_RECORDER_NOT_SUPPORTED
(HRESULT)0xC0AA0407
This device does not support the operations required by this disc format.
E_IMAPI_DF2DATA_CLIENT_NAME_IS_NOT_VALID
(HRESULT)0xC0AA0408
The client name is not valid.
E_IMAPI_DF2TAO_WRITE_IN_PROGRESS
(HRESULT)0xC0AA0500
There is currently a write operation in progress.
E_IMAPI_DF2TAO_WRITE_NOT_IN_PROGRESS
(HRESULT)0xC0AA0501
There is no write operation currently in progress.
E_IMAPI_DF2TAO_MEDIA_IS_NOT_PREPARED
(HRESULT)0xC0AA0502
The requested operation is only valid when media has been "prepared".
E_IMAPI_DF2TAO_MEDIA_IS_PREPARED
(HRESULT)0xC0AA0503
The requested operation is not valid when media has been "prepared" but not released.
E_IMAPI_DF2TAO_PROPERTY_FOR_BLANK_MEDIA_ONLY
(HRESULT)0xC0AA0504
The property cannot be changed once the media has been written to.
E_IMAPI_DF2TAO_TABLE_OF_CONTENTS_EMPTY_DISC
(HRESULT)0xC0AA0505
The table of contents cannot be retrieved from an empty disc.
E_IMAPI_DF2TAO_MEDIA_IS_NOT_BLANK
(HRESULT)0xC0AA0506
Only blank CD-R/RW media is supported.
E_IMAPI_DF2TAO_MEDIA_IS_NOT_SUPPORTED
(HRESULT)0xC0AA0507
Only blank CD-R/RW media is supported.
E_IMAPI_DF2TAO_TRACK_LIMIT_REACHED
(HRESULT)0xC0AA0508
CD-R and CD-RW media support a maximum of 99 audio tracks.
E_IMAPI_DF2TAO_NOT_ENOUGH_SPACE
(HRESULT)0xC0AA0509
There is not enough space left on the media to add the provided audio track.
E_IMAPI_DF2TAO_NO_RECORDER_SPECIFIED
(HRESULT)0xC0AA050A
You cannot prepare the media until you choose a recorder to use.
E_IMAPI_DF2TAO_INVALID_ISRC
(HRESULT)0xC0AA050B
The ISRC provided is not valid.
E_IMAPI_DF2TAO_INVALID_MCN
(HRESULT)0xC0AA050C
The Media Catalog Number provided is not valid.
E_IMAPI_DF2TAO_STREAM_NOT_SUPPORTED
(HRESULT)0xC0AA050D
The provided audio stream is not valid.
E_IMAPI_DF2TAO_RECORDER_NOT_SUPPORTED
(HRESULT)0xC0AA050E
This device does not support the operations required by this disc format.
E_IMAPI_DF2TAO_CLIENT_NAME_IS_NOT_VALID
(HRESULT)0xC0AA050F
The client name is not valid.
E_IMAPI_DF2RAW_WRITE_IN_PROGRESS
(HRESULT)0xC0AA0600
There is currently a write operation in progress.
E_IMAPI_DF2RAW_WRITE_NOT_IN_PROGRESS
(HRESULT)0xC0AA0601
There is no write operation currently in progress.
E_IMAPI_DF2RAW_MEDIA_IS_NOT_PREPARED
(HRESULT)0xC0AA0602
The requested operation is only valid when media has been "prepared".
E_IMAPI_DF2RAW_MEDIA_IS_PREPARED
(HRESULT)0xC0AA0603
The requested operation is not valid when media has been "prepared" but not released.
E_IMAPI_DF2RAW_CLIENT_NAME_IS_NOT_VALID
(HRESULT)0xC0AA0604
The client name is not valid.
E_IMAPI_DF2RAW_MEDIA_IS_NOT_BLANK
(HRESULT)0xC0AA0606
Only blank CD-R/RW media is supported.
E_IMAPI_DF2RAW_MEDIA_IS_NOT_SUPPORTED
(HRESULT)0xC0AA0607
Only blank CD-R/RW media is supported.
E_IMAPI_DF2RAW_NOT_ENOUGH_SPACE
(HRESULT)0xC0AA0609
There is not enough space on the media to add the provided session.
E_IMAPI_DF2RAW_NO_RECORDER_SPECIFIED
(HRESULT)0xC0AA060A
You cannot prepare the media until you choose a recorder to use.
E_IMAPI_DF2RAW_STREAM_NOT_SUPPORTED
(HRESULT)0xC0AA060D
The provided audio stream is not valid.
E_IMAPI_DF2RAW_DATA_BLOCK_TYPE_NOT_SUPPORTED
(HRESULT)0xC0AA060E
The requested data block type is not supported by the current device.
E_IMAPI_DF2RAW_STREAM_LEADIN_TOO_SHORT
(HRESULT)0xC0AA060F
The stream does not contain a sufficient number of sectors in the leadin for the current media.
E_IMAPI_DF2RAW_RECORDER_NOT_SUPPORTED
(HRESULT)0xC0AA0610
This device does not support the operations required by this disc format.
E_IMAPI_ERASE_RECORDER_IN_USE
(HRESULT)0x80AA0900
The 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_SUPPORTED
(HRESULT)0x80AA0901
The erase format only supports one recorder. You must clear the current recorder before setting a new one.
E_IMAPI_ERASE_DISC_INFORMATION_TOO_SMALL
(HRESULT)0x80AA0902
The 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_SMALL
(HRESULT)0x80AA0903
The 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_ERASABLE
(HRESULT)0x80AA0904
The drive reported that the media is not erasable.
E_IMAPI_ERASE_DRIVE_FAILED_ERASE_COMMAND
(HRESULT)0x80AA0905
The drive failed the erase command.
E_IMAPI_ERASE_TOOK_LONGER_THAN_ONE_HOUR
(HRESULT)0x80AA0906
The 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_ERASE
(HRESULT)0x80AA0907
The 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_COMMAND
(HRESULT)0x80AA0908
The drive returned an error for a START UNIT (spinup) command. Manual intervention may be required.
E_IMAPI_ERASE_MEDIA_IS_NOT_SUPPORTED
(HRESULT)0xC0AA0909
The current media type is unsupported.
E_IMAPI_ERASE_RECORDER_NOT_SUPPORTED
(HRESULT)0xC0AA090A
This device does not support the operations required by this disc format.
E_IMAPI_ERASE_CLIENT_NAME_IS_NOT_VALID
(HRESULT)0xC0AA090B
The client name is not valid.

The following success and error codes are defined in Imapi2fserror.h.

Constant/value Description
IMAPI_E_FSI_INTERNAL_ERROR
(HRESULT)0xC0AAB100
Internal error occurred: %1!ls!.
IMAPI_E_INVALID_PARAM
(HRESULT)0xC0AAB101
The value specified for parameter '%1!ls!' is not valid.
IMAPI_E_READONLY
(HRESULT)0xC0AAB102
FileSystemImage object is in read only mode.
IMAPI_E_NO_OUTPUT
(HRESULT)0xC0AAB103
No output file system specified.
IMAPI_E_INVALID_VOLUME_NAME
(HRESULT)0xC0AAB104
The specified Volume Identifier is either too long or contains one or more invalid characters.
IMAPI_E_INVALID_DATE
(HRESULT)0xC0AAB105
Invalid file dates. %1!ls! time is earlier than %2!ls! time.
IMAPI_E_FILE_SYSTEM_NOT_EMPTY
(HRESULT)0xC0AAB106
The file system must be empty for this function.
IMAPI_E_FILE_SYSTEM_CHANGE_NOT_ALLOWED
(HRESULT)0xC0AAB163L
You 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_FILE
(HRESULT)0xC0AAB108
Specified path '%1!ls!' does not identify a file.
IMAPI_E_NOT_DIR
(HRESULT)0xC0AAB109
Specified path '%1!ls!' does not identify a directory.
IMAPI_E_DIR_NOT_EMPTY
(HRESULT)0xC0AAB10A
The directory '%1!s!' is not empty.
IMAPI_E_NOT_IN_FILE_SYSTEM
(HRESULT)0xC0AAB10B
ls!' is not part of the file system. It must be added to complete this operation.
IMAPI_E_INVALID_PATH
(HRESULT)0xC0AAB110
Path '%1!s!' is badly formed or contains invalid characters.
IMAPI_E_RESTRICTED_NAME_VIOLATION
(HRESULT)0xC0AAB111
The 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_NAME
(HRESULT)0xC0AAB112
ls!' name already exists.
IMAPI_E_NO_UNIQUE_NAME
(HRESULT)0xC0AAB113
Attempt to add '%1!ls!' failed: cannot create a file-system-specific unique name for the %2!ls! file system.
IMAPI_E_ITEM_NOT_FOUND
(HRESULT)0xC0AAB118
Cannot find item '%1!ls!' in FileSystemImage hierarchy.
IMAPI_E_FILE_NOT_FOUND
(HRESULT)0xC0AAB119
The file '%1!s!' not found in FileSystemImage hierarchy.
IMAPI_E_DIR_NOT_FOUND
(HRESULT)0xC0AAB11A
The directory '%1!s!' not found in FileSystemImage hierarchy.
IMAPI_E_IMAGE_SIZE_LIMIT
(HRESULT)0xC0AAB120
Adding '%1!ls!' would result in a result image having a size larger than the current configured limit.
IMAPI_E_IMAGE_TOO_BIG
(HRESULT)0xC0AAB121
Value specified for FreeMediaBlocks property is too small for estimated image size based on current data.
IMAPI_E_IMAGEMANAGER_IMAGE_NOT_ALIGNED
(HRESULT)0xC0AAB200L
The image is not aligned on a 2kb sector boundary.
IMAPI_E_IMAGEMANAGER_NO_VALID_VD_FOUND
(HRESULT)0xC0AAB201L)
The image does not contain a valid volume descriptor.
IMAPI_E_IMAGEMANAGER_NO_IMAGE
(HRESULT)0xC0AAB202L
The 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_BIG
(HRESULT)0xC0AAB203L
The provided image is too large to be validated as the size exceeds MAXLONG.
IMAPI_E_DATA_STREAM_INCONSISTENCY
(HRESULT)0xC0AAB128
Data stream supplied for file '%1!ls!' is inconsistent: expected %2!I64d! bytes, found %3!I64d!.
IMAPI_E_DATA_STREAM_READ_FAILURE
(HRESULT)0xC0AAB129
Cannot read data from stream supplied for file '%1!ls!'.
IMAPI_E_DATA_STREAM_CREATE_FAILURE
(HRESULT)0xC0AAB12A
The following error was encountered when trying to create data stream for file '%1!ls!':
IMAPI_E_DIRECTORY_READ_FAILURE
(HRESULT)0xC0AAB12BL
Failure enumerating files in the directory tree is inaccessible due to permissions.
IMAPI_E_TOO_MANY_DIRS
(HRESULT)0xC0AAB130
This file system image has too many directories for the %1!ls! file system.
IMAPI_E_ISO9660_LEVELS
(HRESULT)0xC0AAB131
ISO9660 is limited to 8 levels of directories.
IMAPI_E_DATA_TOO_BIG
(HRESULT)0xC0AAB132
Data file is too large for '%1!ls!' file system.
IMAPI_E_STASHFILE_OPEN_FAILURE
(HRESULT)0xC0AAB138
Cannot initialize %1!ls! stash file.
IMAPI_E_STASHFILE_SEEK_FAILURE
(HRESULT)0xC0AAB139
Error seeking in '%1!ls!' stash file.
IMAPI_E_STASHFILE_WRITE_FAILURE
(HRESULT)0xC0AAB13A
Error encountered writing to '%1!ls!' stash file.
IMAPI_E_STASHFILE_READ_FAILURE
(HRESULT)0xC0AAB13B
Error encountered reading from '%1!ls!' stash file.
IMAPI_E_INVALID_WORKING_DIRECTORY
(HRESULT)0xC0AAB140
The working directory '%1!ls!' is not valid.
IMAPI_E_WORKING_DIRECTORY_SPACE
(HRESULT)0xC0AAB141
Cannot set working directory to '%1!ls!'. Space available is %2!I64d! bytes, approximately %3!I64d! bytes required.
IMAPI_E_STASHFILE_MOVE
(HRESULT)0xC0AAB142
Attempt to move the data stash file to directory '%1!ls!' was not successful.
IMAPI_E_BOOT_IMAGE_DATA
(HRESULT)0xC0AAB148
The boot object could not be added to the image.
IMAPI_E_BOOT_OBJECT_CONFLICT
(HRESULT)0xC0AAB149
A boot object can only be included in an initial disc image.
IMAPI_E_BOOT_EMULATION_IMAGE_SIZE_MISMATCH
(HRESULT)0xC0AAB14A
The emulation type requested does not match the boot image size.
IMAPI_E_EMPTY_DISC
(HRESULT)0xC0AAB150
Optical media is empty.
IMAPI_E_NO_SUPPORTED_FILE_SYSTEM
(HRESULT)0xC0AAB151
The specified disc does not contain one of the supported file systems.
IMAPI_E_FILE_SYSTEM_NOT_FOUND
(HRESULT)0xC0AAB152
The specified disc does not contain a '%1!ls!' file system.
IMAPI_E_FILE_SYSTEM_READ_CONSISTENCY_ERROR
(HRESULT)0xC0AAB153
Consistency error encountered while importing the '%1!ls!' file system.
IMAPI_E_FILE_SYSTEM_FEATURE_NOT_SUPPORTED
(HRESULT)0xC0AAB154
The '%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_DIRECTORY
(HRESULT)0xC0AAB155
Could 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_FAILURE
(HRESULT)0xC0AAB156
Cannot seek to block %1!I64d! on source disc.
IMAPI_E_IMPORT_READ_FAILURE
(HRESULT)0xC0AAB157
Import from previous session failed due to an error reading a block on the media (most likely block %1!u!).
IMAPI_E_DISC_MISMATCH
(HRESULT)0xC0AAB158
Current disc is not the same one from which file system was imported.
IMAPI_E_IMPORT_MEDIA_NOT_ALLOWED
(HRESULT)0xC0AAB159
IMAPI does not allow multi-session with the current media type.
IMAPI_E_UDF_NOT_WRITE_COMPATIBLE
(HRESULT)0xC0AAB15A
IMAPI cannot do multi-session with the current media because it does not support a compatible UDF revision for write.
IMAPI_E_INCOMPATIBLE_MULTISESSION_TYPE
(HRESULT)0xC0AAB15B
IMAPI does not support the multisession type requested.
IMAPI_E_INCOMPATIBLE_PREVIOUS_SESSION
(HRESULT)0xC0AAB133
Operation failed due to an incompatible layout of the previous session imported from the medium.
IMAPI_E_NO_COMPATIBLE_MULTISESSION_TYPE
(HRESULT)0xC0AAB15C
IMAPI 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_SET
(HRESULT)0xC0AAB15D
MultisessionInterfaces property must be set prior calling this method.
IMAPI_E_IMPORT_TYPE_COLLISION_DIRECTORY_EXISTS_AS_FILE
(HRESULT)0xC0AAB15E
Could 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_PARAMETER
(HRESULT)0xC0AAB162
One of multisession parameters cannot be retrieved or has a wrong value.
IMAPI_S_IMAGE_FEATURE_NOT_SUPPORTED
(HRESULT)0x00AAB15FL
This feature is not supported for the current file system revision. The image will be created without this feature.

Requirements

Requirement Value
Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Imapi2error.h;
Imapi2fserror.h