---
name: "InterlockedExchangeAdd"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.0.1-3.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/InterlockedExchangeAdd"
---

# InterlockedExchangeAdd(3w)

## NAME

**InterlockedExchangeAdd** (KERNEL32.@)

## SYNOPSIS

LONG InterlockedExchangeAdd\
  (\
   LONG volatile\* *dest*,\
   LONG           *incr*\
  )

## DESCRIPTION

Atomically add one value to another.

## PARAMS

*dest* **\[In/Out\]**  The value to add to.

*incr* **\[In\]**  The value to be added.

## RETURNS

The resulting value of *dest*.

## IMPLEMENTATION

Defined in **"winbase.h"**.

Implemented in **"dlls/kernel32/sync.c"**.

Debug channel **"sync"**.
