IDvdInfo2::GetCurrentButton method

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

pulButtonsAvailable [out]

Receives the number of buttons available.

pulCurrentButton [out]

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

Return value

Returns one of the following HRESULT values.

Return codeDescription
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]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

DVD Applications
EC_DVD_BUTTON_CHANGE
Error and Success Codes
IDvdInfo2 Interface

 

 

Show: