Reference

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) to obtain a pointer to the function.

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

Debug channel "shell".

History