Partager via


IDvdInfo2::GetNumberOfChapters

 
Microsoft DirectShow 9.0

IDvdInfo2::GetNumberOfChapters

The GetNumberOfChapters method retrieves the number of chapters in a given title.

Syntax

  HRESULT GetNumberOfChapters(
  ULONG ulTitle,
  ULONG *pulNumOfChapters
);

Parameters

ulTitle

[in] Variable of type ULONG that specifies the title.

pulNumOfChapters

[out] Pointer to a variable of type ULONG that receives the number of chapters for the specified title.

Return Values

Returns one of the following HRESULT values.

Return code Description
S_OK Success.
E_INVALIDARG Invalid argument.
E_POINTER A parameter is invalid.
E_UNEXPECTED The DVD Navigator is not initialized.

Remarks

Call this method to get the number of chapters before calling IDvdControl2::PlayChapter, to ensure that you specify a valid chapter number.

Requirements

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

Library: Use Strmiids.lib.

See Also