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

# SHGetRestriction(3w)

## NAME

**SHGetRestriction** (SHLWAPI.271)

## SYNOPSIS

DWORD SHGetRestriction\
  (\
   LPCWSTR *lpSubKey*,\
   LPCWSTR *lpSubName*,\
   LPCWSTR *lpValue*\
  )

## DESCRIPTION

Retrieve a policy value from the registry.

## PARAMS

*lpSubKey* **\[In\]**  registry key name.

*lpSubName* **\[In\]**  subname of registry key.

*lpValue* **\[In\]**  value name of registry value.

## RETURNS

the value associated with the registry key or **0** if not found

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
