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

# SHOpenRegStream2A(3w)

## NAME

**SHOpenRegStream2A** (SHLWAPI.@)

## SYNOPSIS

IStream \* SHOpenRegStream2A\
  (\
   HKEY   *hKey*,\
   LPCSTR *pszSubkey*,\
   LPCSTR *pszValue*,\
   DWORD  *dwMode*\
  )

## DESCRIPTION

Create a stream to read binary registry data.

## PARAMS

*hKey* **\[In\]**  Registry handle.

*pszSubkey* **\[In\]**  The sub key name.

*pszValue* **\[In\]**  The value name under the sub key.

*dwMode* **\[In\]**  Unused.

## RETURNS

**Success:** An **IStream** interface referring to the registry data

**Failure:** **NULL**, if the registry key could not be opened or is not binary.

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
