Поделиться через


IDvdInfo2::GetCurrentButton

 
Microsoft DirectShow 9.0

IDvdInfo2::GetCurrentButton

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

Syntax

  HRESULT GetCurrentButton(
  ULONG *pulButtonsAvailable,
  ULONG *pulCurrentButton
);

Parameters

pulButtonsAvailable

[out] Pointer to a variable of type ULONG that receives the number of buttons available.

pulCurrentButton

[out] Pointer to a variable of type ULONG that receives the number (from 1 through 36) of the currently selected button.

Return Values

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

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also