TRefPointerCollection::Add method

[The TRefPointerCollection class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]

The Add method adds a reference to the collection.

Syntax

BOOL Add(
  TYPED_PTR *ptr
);

Parameters

ptr

Pointer to be added to the collection.

Return Value

If the method is successful, it returns TRUE.

If the method fails, it returns FALSE.

Remarks

The Add method calls the AddRef method on this pointer.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header refptrco.h (include FwCommon.h)
Library FrameDyn.lib
DLL FrameDynOS.dll; FrameDyn.dll