TRefPointerCollection::Add method (refptrco.h)

[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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header refptrco.h (include FwCommon.h)
Library FrameDyn.lib
DLL FrameDynOS.dll; FrameDyn.dll