---
name: "IQueryAssociations_GetKey"
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/IQueryAssociations_GetKey"
---

# IQueryAssociations\_GetKey(3w)

## NAME

**IQueryAssociations\_GetKey** (SHLWAPI.@)

## SYNOPSIS

static HRESULT IQueryAssociations\_GetKey\
  (\
   IQueryAssociations\* *iface*,\
   ASSOCF              *cfFlags*,\
   ASSOCKEY            *assockey*,\
   LPCWSTR             *pszExtra*,\
   HKEY\*               *phkeyOut*\
  )

## DESCRIPTION

Get a file association key from the registry.

## PARAMS

*iface* **\[In\]**  **IQueryAssociations** interface to query.

*cfFlags* **\[In\]**  **ASSOCF\_** flags from **"shlwapi.h"**.

*assockey* **\[In\]**  Type of key to get (**ASSOCKEY** enum from **"shlwapi.h"**).

*pszExtra* **\[In\]**  Extra information about the key location.

*phkeyOut* **\[Out\]**  Destination for the association key.

## RETURNS

**Success:** **S\_OK**. *phkeyOut* contains a handle to the key.

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

## IMPLEMENTATION

Defined in **"shlwapi.h"**.

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

Debug channel **"shell"**.
