IWMPCdromBurn::isAvailable

IWMPCdromBurn::isAvailable method

The isAvailable method provides information about the CD drive and media.

Syntax


HRESULT isAvailable(
  [in]  BSTR         bstrItem,
  [out] VARIANT_BOOL *pIsAvailable
);

Parameters

bstrItem [in]

BSTR that contains one of the following values.

Value Description
BurnThe drive is a CD burner.
DiscThere is a CD in the drive.
EraseThe CD can be erased.
WriteThe CD can be written to.

 

pIsAvailable [out]

Pointer to a VARIANT_BOOL that indicates the result.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

 

Remarks

Windows Media Player 10 Mobile: This method is not supported.

Requirements

Version

Windows Media Player 11.

Header

Wmp.h

DLL

Wmp.dll

See also

IWMPCdromBurn Interface

 

 

Show:
© 2016 Microsoft