Share via


CGenericList::AddHead

 
Microsoft DirectShow 9.0

CGenericList::AddHead

The AddHead method adds an item or list to the front of the list.

Syntax

  POSITION AddHead(
    OBJECT *pObj
);

Parameters

pObj

Pointer to an object of type OBJECT (the template type).

Return Value

Returns a POSITION value indicating the new head position. If the method fails, the return value is NULL.

Syntax

  BOOL AddHead(
    CGenericList<OBJECT> *pList
);

Parameters

pList

Pointer to the list of items to add.

Return Value

Returns TRUE if successful, or FALSE otherwise.

Requirements

**  Header:** Declared in Wxlist.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also