---
name: "IQueryAssociations_Init"
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_Init"
---

# IQueryAssociations\_Init(3w)

## NAME

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

## SYNOPSIS

static HRESULT IQueryAssociations\_Init\
  (\
   IQueryAssociations\* *iface*,\
   ASSOCF              *cfFlags*,\
   LPCWSTR             *pszAssoc*,\
   HKEY                *hkeyProgid*,\
   HWND                *hWnd*\
  )

## DESCRIPTION

Initialise an **IQueryAssociations** object.

## PARAMS

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

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

*pszAssoc* **\[In\]**  String for the root key name, or **NULL** if hkProgid is given.

*hkeyProgid* **\[In\]**  Handle for the root key, or **NULL** if *pszAssoc* is given.

*hWnd* **\[In\]**  Reserved, must be **NULL**.

## RETURNS

**Success:** **S\_OK**. *iface* is initialised with the parameters given.

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

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
