Share via


Windows Media Player 11 SDK IWMPDVD::get_isAvailable 

Windows Media Player SDK banner art

Previous Next

IWMPDVD::get_isAvailable

The get_isAvailable method indicates whether a specified type of information is available or a specified action can be performed.

Syntax

  

Parameters

bstrItem

[in]  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.

pIsAvailable

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

Return Values

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

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

Platform: Windows XP or later.

See Also

Previous Next