Share via


IWMPDVD::get_isAvailable method (wmp.h)

[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 get_isAvailable method indicates whether a specified type of information is available or a specified action can be performed.

Syntax

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

Parameters

[in] bstrItem

BSTR containing one of the following values.

Value Description
back Determines whether the IWMPDVD::back method is available.
dvd Determines whether the DVD is loaded.
dvdDecoder Determines whether the DVD decoder is installed on system.
resume Determines whether the IWMPDVD::resume method is available.
titleMenu Determines whether the IWMPDVD::titleMenu method is available.
topMenu Determines whether the IWMPDVD::topMenu method is available. Commonly called the root menu.

[out] pIsAvailable

Pointer to a VARIANT_BOOL that indicates whether the specified parameter is available.

Return value

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

Return code Description
S_OK
The method succeeded.

Remarks

The DVD features of Windows Media Player will not work on computers that do not have a DVD decoder installed. You can determine whether a decoder is available by calling the get_isAvailable method and passing in the BSTR value "dvdDecoder".

Every DVD is authored differently. The methods available during DVD playback and navigation depend on how the DVD is authored.

Windows Media Player 10 Mobile: This method always retrieves a VARIANT_BOOL set to FALSE.

Requirements

   
Minimum supported client Windows XP [desktop apps only],Windows Media Player 9 Series or later.
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wmp.h
DLL Wmp.dll

See also

IWMPDVD Interface

IWMPDVD::back

IWMPDVD::resume

IWMPDVD::titleMenu

IWMPDVD::topMenu