Share via


ITocCollection::AddEntry Method

The AddEntry method adds an individual table of contents to the collection and assigns an index to the added table of contents.

Syntax

HRESULT AddEntry(
  [in]   IToc *pToc,
  [out]  DWORD *pdwEntryIndex
);

Parameters

  • pToc [in]
    Pointer to an IToc interface that represents the table of contents to be added.

  • pdwEntryIndex [out]
    Pointer to a DWORD that receives the index of the added table of contents.

Return Value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK

The method succeeded.

 

Remarks

In the context of an ITocCollection interface, the word entry refers to an indivdual table of contents. That meaning of the word entry is in contrast to its meaning in the context of other interfaces in the TOC Parser technology. For example, in the context of an IToc interface, the word entry refers to a block of information, in a table of contents, that represents a section of a video file.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Wmcodecdsp.h

DLL

Wmvdspa.dll

See Also

ITocCollection

GetEntryByIndex

 

 

Send comments about this topic to Microsoft

Build date: 4/7/2010