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

# AssocCreate(3w)

## NAME

**AssocCreate** (SHLWAPI.@)

## SYNOPSIS

HRESULT AssocCreate\
  (\
   CLSID  *clsid*,\
   REFIID *refiid*,\
   void\*\* *lpInterface*\
  )

## DESCRIPTION

Create a new **IQueryAssociations** object.

## PARAMS

*clsid* **\[In\]**  **CLSID** of object.

*refiid* **\[In\]**  **REFIID** of interface.

*lpInterface* **\[Out\]**  Destination for the created **IQueryAssociations** object.

## RETURNS

**Success:** **S\_OK**. *lpInterface* contains the new object.

**Failure:** An **HRESULT** error code indicating the error.

## NOTES

*clsid* must be equal to CLSID\_QueryAssociations and *refiid* must be equal to IID\_IQueryAssociations, IID\_IUnknown or this function will fail

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
