共用方式為


IDvdInfo::GetCurrentButton

 
Microsoft DirectShow 9.0

IDvdInfo::GetCurrentButton

  • Note   The IDvdInfo interface is deprecated. Use IDvdInfo2 instead.

Retrieves the number of available buttons and the currently selected button number.

Syntax

  HRESULT GetCurrentButton(
    ULONG *pnButtonsAvailable,
    ULONG *pnCurrentButton
);

Parameters

pnButtonsAvailable

[out] Pointer to the number of buttons available.

pnCurrentButton

[out] Pointer to the number of the current button.

Return Value

Returns an HRESULT value .

Return code Description
S_OK Success.
VFW_E_DVD_OPERATION_INHIBITED Requested action cannot occur at this point in the movie due to the authoring of the current DVD-Video disc.

Remarks

If buttons are not present this method returns zero for both pnButtonsAvailable and pnCurrentButton.

This method is valid in any domain. For more information, see DVD_DOMAIN.

Requirements

Reference: Dshow.h.

Library: Quartz.dll.

See Also