IDvdInfo2::GetNumberOfChapters method

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

Syntax


HRESULT GetNumberOfChapters(
  [in]  ULONG ulTitle,
  [out] ULONG *pulNumOfChapters
);

Parameters

ulTitle [in]

Specifies the title.

pulNumOfChapters [out]

Receives the number of chapters for the specified title.

Return value

Returns one of the following HRESULT values.

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

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
Error and Success Codes
IDvdInfo2 Interface

 

 

Show: