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

# SHRegGetCLSIDKeyA(3w)

## NAME

**SHRegGetCLSIDKeyA** (SHLWAPI.343)

## SYNOPSIS

HRESULT SHRegGetCLSIDKeyA\
  (\
   REFGUID *guid*,\
   LPCSTR  *lpszValue*,\
   BOOL    *bUseHKCU*,\
   BOOL    *bCreate*,\
   PHKEY   *phKey*\
  )

## DESCRIPTION

Create or open an explorer ClassId Key.

## PARAMS

*guid* **\[In\]**  Explorer ClassId key to open.

*lpszValue* **\[In\]**  Value name under the ClassId Key.

*bUseHKCU* **\[In\]**  **TRUE**=Use **HKEY\_CURRENT\_USER**, **FALSE**=Use **HKEY\_CLASSES\_ROOT**.

*bCreate* **\[In\]**  **TRUE**=Create the key if it doesn't exist, **FALSE**=Don't.

*phKey* **\[Out\]**  Destination for the resulting key handle.

## RETURNS

**Success:** **S\_OK**. *phKey* contains the resulting registry handle.

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

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
