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

# AssocQueryKeyA(3w)

## NAME

**AssocQueryKeyA** (SHLWAPI.@)

## SYNOPSIS

HRESULT AssocQueryKeyA\
  (\
   ASSOCF   *cfFlags*,\
   ASSOCKEY *assockey*,\
   LPCSTR   *pszAssoc*,\
   LPCSTR   *pszExtra*,\
   HKEY\*    *phkeyOut*\
  )

## DESCRIPTION

Get a file association key from the registry.

## PARAMS

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

*assockey* **\[In\]**  Type of key to get.

*pszAssoc* **\[In\]**  Key name to search below.

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

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

## RETURNS

**Success:** **S\_OK**. *phkeyOut* contains the key.

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

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
