mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 12:55:43 +00:00
[SHELL32][SHLWAPI][SDK] Implement SHRestricted etc. (#6560)
shell32!SHRestricted is necessary to make shell working well. JIRA issue: CORE-11515 - Add dll/win32/shell32/wine/PolicyData.h to define the shell policy data. - Define POLICYDATA structure and SHELL_NO_POLICY constant in <shlwapi_undoc.h>. - Fix shell32!SHRestricted, shell32!SHSettingsChanged, shlwapi!SHGetRestriction, and shlwapi!SHRestrictionLookup functions.
This commit is contained in:
parent
3e3594e3aa
commit
ede65b88bc
5 changed files with 459 additions and 1349 deletions
|
@ -1832,11 +1832,11 @@ typedef enum RESTRICTIONS
|
|||
REST_NODETAILSTHUMBNAILONNETWORK = 0x40000094,
|
||||
#endif
|
||||
REST_NOINTERNETOPENWITH = 0x40000095,
|
||||
#if (NTDDI_VERSION < NTDDI_VISTA)
|
||||
REST_ALLOWLEGACYLMZBEHAVIOR = 0x40000096, /* not documented */
|
||||
#endif
|
||||
#endif
|
||||
#if (NTDDI_VERSION >= NTDDI_WINXPSP2)
|
||||
#if (NTDDI_VERSION < NTDDI_VISTA)
|
||||
REST_ALLOWLEGACYLMZBEHAVIOR = 0x4000009A, /* not documented */
|
||||
#endif
|
||||
REST_DONTRETRYBADNETNAME = 0x4000009B,
|
||||
REST_ALLOWFILECLSIDJUNCTIONS,
|
||||
REST_NOUPNPINSTALL,
|
||||
|
|
|
@ -25,6 +25,27 @@
|
|||
extern "C" {
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
#define SHELL_NO_POLICY ((DWORD)-1)
|
||||
|
||||
typedef struct tagPOLICYDATA
|
||||
{
|
||||
DWORD policy; /* flags value passed to SHRestricted */
|
||||
LPCWSTR appstr; /* application str such as "Explorer" */
|
||||
LPCWSTR keystr; /* name of the actual registry key / policy */
|
||||
} POLICYDATA, *LPPOLICYDATA;
|
||||
|
||||
HANDLE WINAPI SHGlobalCounterCreate(REFGUID guid);
|
||||
PVOID WINAPI SHInterlockedCompareExchange(PVOID *dest, PVOID xchg, PVOID compare);
|
||||
LONG WINAPI SHGlobalCounterGetValue(HANDLE hGlobalCounter);
|
||||
LONG WINAPI SHGlobalCounterIncrement(HANDLE hGlobalCounter);
|
||||
|
||||
DWORD WINAPI
|
||||
SHRestrictionLookup(
|
||||
_In_ DWORD policy,
|
||||
_In_ LPCWSTR key,
|
||||
_In_ const POLICYDATA *polTable,
|
||||
_Inout_ LPDWORD polArr);
|
||||
|
||||
BOOL WINAPI SHAboutInfoA(LPSTR lpszDest, DWORD dwDestLen);
|
||||
BOOL WINAPI SHAboutInfoW(LPWSTR lpszDest, DWORD dwDestLen);
|
||||
#ifdef UNICODE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue