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

# SHRegOpenUSKeyA(3w)

## NAME

**SHRegOpenUSKeyA** (SHLWAPI.@)

## SYNOPSIS

LONG SHRegOpenUSKeyA\
  (\
   LPCSTR  *Path*,\
   REGSAM  *AccessType*,\
   HUSKEY  *hRelativeUSKey*,\
   PHUSKEY *phNewUSKey*,\
   BOOL    *fIgnoreHKCU*\
  )

## DESCRIPTION

Open a user-specific registry key.

## PARAMS

*Path* **\[In\]**  Key name to open.

*AccessType* **\[In\]**  Access type.

*hRelativeUSKey* **\[In\]**  Relative user key.

*phNewUSKey* **\[Out\]**  Destination for created key.

*fIgnoreHKCU* **\[In\]**  **TRUE**=Don't check **HKEY\_CURRENT\_USER**.

## RETURNS

**Success:** **ERROR\_SUCCESS**

**Failure:** An error code from **[RegOpenKeyExA(3w)](/RegOpenKeyExA/3w.md)**.

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
