IDvdInfo2::GetCurrentButton method (strmif.h)

The GetCurrentButton method retrieves the number of available buttons and the number of the currently selected button.

Syntax

HRESULT GetCurrentButton(
  [out] ULONG *pulButtonsAvailable,
  [out] ULONG *pulCurrentButton
);

Parameters

[out] pulButtonsAvailable

Receives the number of buttons available.

[out] pulCurrentButton

Receives the number (from 1 through 36) of the currently selected button.

Return value

Returns one of the following HRESULT values.

Return code Description
S_OK
Success.
E_POINTER
One of the pointer arguments is not valid.

Remarks

If buttons are not present, both pulButtonsAvailable and pulCurrentButton are set to zero.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)
Library Strmiids.lib

See also

DVD Applications

EC_DVD_BUTTON_CHANGE

Error and Success Codes

IDvdInfo2 Interface