Share via


IWMPCdromBurn::isAvailable method

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

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

Syntax

public System.Boolean isAvailable(
  System.String bstrItem
);

Public Function isAvailable( _
  ByVal bstrItem As System.String _
) As System.Boolean
Implements IWMPCdromBurn.isAvailable

Parameters

bstrItem [in]

A System.String that contains one of the following values.

Value Description
Burn The drive is a CD burner.
Disc There is a CD in the drive.
Erase The CD can be erased.
Write The CD can be written to.

Return value

A System.Boolean that indicates the result.

Requirements

Requirement Value
Version
Windows Media Player 11.
Namespace
WMPLib
Assembly
Interop.WMPLib.dll (Interop.WMPLib.dll.dll)

See also

IWMPCdromBurn Interface (VB and C#)