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

# SHGetObjectCompatFlags(3w)

## NAME

**SHGetObjectCompatFlags** (SHLWAPI.476)

## SYNOPSIS

DWORD SHGetObjectCompatFlags\
  (\
   IUnknown\*    *pUnk*,\
   const CLSID\* *clsid*\
  )

## DESCRIPTION

Function returns an integer representation of compatibility flags stored in registry for **CLSID** under ShellCompatibility subkey.

## PARAMS

**pUnk:** pointer to object **IUnknown** interface, idetifies **CLSID**

**clsid:** pointer to **CLSID** to retrieve data for.

## RETURNS

0 on failure, flags set on success

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

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

Debug channel **"shell"**.
