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

# SHInitRestricted(3w)

## NAME

**SHInitRestricted** (SHELL32.244)

## SYNOPSIS

BOOL SHInitRestricted\
  (\
   LPCVOID *unused*,\
   LPCVOID *inpRegKey*\
  )

## DESCRIPTION

Initialise the policy cache to speed up calls to **[SHRestricted(3w)](/SHRestricted/3w.md)**.

## PARAMS

*unused* **\[In\]**  Reserved.

*inpRegKey* **\[In\]**  Registry key to scan.

## RETURNS

**Success:** **-1.** The policy cache is initialised.

**Failure:** **0**, if *inpRegKey* is any value other than **NULL**, **"Policy"**, or **"SoftwarecrosoftWindows**

## NOTES

**Exported by ordinal. Introduced in Win98.**

## IMPLEMENTATION

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

Implemented in **"dlls/shell32/shpolicy.c"**.

Debug channel **"shell"**.
