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 code | Description |
|---|---|
|
Success. |
|
Invalid argument. |
|
A parameter is invalid. |
|
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 |
|
|
Library |
|
See also