---
name: "UlAddRef"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/UlAddRef"
---

# UlAddRef(3w)

## NAME

**UlAddRef** (MAPI32.128)

## SYNOPSIS

ULONG UlAddRef\
  (\
   void\* *lpUnk*\
  )

## DESCRIPTION

Add a reference to an object.

## PARAMS

*lpUnk* **\[In\]**  Object to add a reference to.

## RETURNS

The new reference count of the object, or **0** if *lpUnk* is **NULL**.

## NOTES

See **IUnknown\_AddRef(3w)**.

## IMPLEMENTATION

Declared in **"mapiutil.h"**.

Implemented in **"dlls/mapi32/util.c"**.

Debug channel **"mapi"**.
