Partager via


AddHeadI (Compact 2013)

3/26/2014

Inserts a node at the front of the list.

Syntax

POSITION AddHeadI(
  void* pObj
);

Parameters

  • pObj
    Pointer to the object to add.

Return Value

Returns the new head position, or NULL if it fails.

For list insertions, returns TRUE if successful; otherwise, returns FALSE.

Remarks

If you are adding Component Object Model (COM) objects, you might want to add references to them (using the IUnknown::AddRef method) first. Other existing positions in the list remain valid.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBaseList Class