I::AddRef

DirectX8

Microsoft DirectX 8.1 (C++)

IUnknown::AddRef

Increases the reference count of the object by 1.

ULONG AddRef();

Parameters

There are no parameters.

Return Values

Returns the new reference count. This value is for diagnostic and testing purposes only.

Remarks

When the object is created, its reference count is set to 1. Every time an application obtains an interface to the object or calls the AddRef method, the object's reference count is increased by 1. Use the Release method to decrease the object's reference count by 1.

Requirements

  Windows NT/2000/XP: Requires Windows NT 3.1 or later.
  Windows 98/Me: Requires Windows 98 or later.
  Header: Declared in Unknwn.h.