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

# SHGetThreadRef(3w)

## NAME

**SHGetThreadRef** (SHLWAPI.@)

## SYNOPSIS

HRESULT SHGetThreadRef\
  (\
   IUnknown\*\* *lppUnknown*\
  )

## DESCRIPTION

Get a per-thread object reference set by **[SHSetThreadRef(3w)](/SHSetThreadRef/3w.md)**.

## PARAMS

*lppUnknown* **\[Out\]**  Destination to receive object reference.

## RETURNS

**Success:** **S\_OK**. *lppUnknown* is set to the object reference.

**Failure:** **E\_NOINTERFACE**, if an error occurs or no object is set

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

Implemented in **"dlls/shlwapi/thread.c"**.

Debug channel **"shell"**.
