IFileSystemImage::ChooseImageDefaults method (imapi2fs.h)

Sets the default file system types and the image size based on the current media.

Syntax

HRESULT ChooseImageDefaults(
  [in] IDiscRecorder2 *discRecorder
);

Parameters

[in] discRecorder

An IDiscRecorder2 the identifies the device that contains the current media.

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
E_POINTER
Pointer is not valid.

Value: 0x80004003

E_IMAPI_RECORDER_MEDIA_INCOMPATIBLE
The media is not compatible or of unknown physical format.

Value: 0xC0AA0203

IMAPI_E_IMAGE_TOO_BIG
Value specified for FreeMediaBlocks property is too small for estimated image size based on current data.

Value: 0xC0AAB121

IMAPI_E_NO_SUPPORTED_FILE_SYSTEM
The specified disc does not contain one of the supported file systems.

Value: 0xC0AAB151

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 imapi2fs.h

See also

IFileSystemImage