IDiscFormat2::IsCurrentMediaSupported method

Determines if the current media in a supported recorder supports the given format.

Syntax


HRESULT IsCurrentMediaSupported(
  [in]   IDiscRecorder2 *recorder,
  [out]  VARIANT_BOOL *value
);

Parameters

recorder [in]

An IDiscRecorder2 interface of the recorder to test.

value [out]

Is VARIANT_TRUE if the media in the recorder supports the given format; otherwise, VARIANT_FALSE.

Note  VARIANT_TRUE also implies that the result from IsDiscRecorderSupported is VARIANT_TRUE.

Return value

S_OK or S_FALSE are 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 codeDescription
E_POINTER

Pointer is not valid.

Value: 0x80004003

E_IMAPI_RECORDER_MEDIA_NO_MEDIA

There is no media in the device.

(HRESULT)0xC0AA0202

 

Note  Currently, Windows Vista will return S_OK and VARIANT_FALSE when media is not present in the device, while E_IMAPI_RECORDER_MEDIA_NO_MEDIA and VARIANT_FALSE are returned in Windows 7.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

IDL

Imapi2.idl

See also

IDiscFormat2
IDiscFormat2::IsDiscRecorderSupported

 

 

Community Additions

ADD
Show:
© 2014 Microsoft