Share via


CBaseList::AddBefore

 
Microsoft DirectShow 9.0

CBaseList::AddBefore

The AddBefore method inserts a list before the specified position.

Syntax

  BOOL AddBefore(
    POSITION pos,
    CBaseList *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.

Remarks

Existing position indicators, including the one specified in the pos parameter, remain valid. If the method fails, some of the items might have been added.

Requirements

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

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

See Also