Compartir a través de


CGenericList::AddBefore

 
Microsoft DirectShow 9.0

CGenericList::AddBefore

The AddBefore method inserts an item or list before the specified position.

Syntax

  POSITION AddBefore(
    POSITION p,
    OBJECT *pObj
);

Parameters

p

Position before which to insert the list. If p is NULL, this method adds the item to the tail of the list.

pObj

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

Return Value

Returns the position indicator for the inserted item.

Syntax

  BOOL AddBefore(
    POSITION pos,
    CGenericList<OBJECT> *pList
);

Parameters

pos

Position before which to insert the list.

pList

Pointer to the list to insert.

Return Value

Returns TRUE if successful. Otherwise, returns FALSE.

Requirements

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

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

See Also