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

# SHRestrictionLookup(3w)

## NAME

**SHRestrictionLookup** (SHLWAPI.266)

## SYNOPSIS

DWORD SHRestrictionLookup\
  (\
   DWORD        *policy*,\
   LPCWSTR      *initial*,\
   LPPOLICYDATA *polTable*,\
   LPDWORD      *polArr*\
  )

## DESCRIPTION

Helper function to retrieve the possibly cached value for a specific *policy*.

## PARAMS

*policy* **\[In\]**  The *policy* to look for.

*initial* **\[In\]**  Main registry key to open, if **NULL** use default.

*polTable* **\[In\]**  Table of known policies, **0** terminated.

*polArr* **\[In\]**  Cache array of *policy* values.

## RETURNS

The retrieved *policy* value or **0** if not successful.

## NOTES

This function is used by the native SHRestricted function to search for the *policy* and cache it once retrieved. The current Wine implementation uses a different **POLICYDATA** structure and implements a similar algorithm adapted to that structure.

## 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"**.
