mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:43:22 +00:00
[EXPLORER][SHELL32] Fix and improve Start Menu customization (#6596)
Correct the details of Start Menu customization. JIRA issue: CORE-16956 - Hide the setting item if the item is restricted. - Don't change restriction in Explorer. - Fix Start Menu settings for restriction and registry. - Fix and simplify code.
This commit is contained in:
parent
0241b5c4e9
commit
8bd071a51e
5 changed files with 139 additions and 139 deletions
|
@ -163,15 +163,6 @@ BOOL SetAdvancedDword(IN LPCWSTR pszValueName, IN DWORD dwValue)
|
|||
return SetRegDword(REGKEY_ADVANCED, pszValueName, dwValue);
|
||||
}
|
||||
|
||||
BOOL SetRestriction(IN LPCWSTR pszKey, IN LPCWSTR pszValueName, IN DWORD dwValue)
|
||||
{
|
||||
WCHAR szSubKey[MAX_PATH] = L"Software\\Microsoft\\Windows\\CurrentVersion\\Policies";
|
||||
PathAppendW(szSubKey, pszKey);
|
||||
SHSetValueW(HKEY_CURRENT_USER, szSubKey, pszValueName, REG_DWORD, &dwValue, sizeof(dwValue));
|
||||
SHSettingsChanged(NULL, NULL);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL
|
||||
GetVersionInfoString(IN LPCWSTR szFileName,
|
||||
IN LPCWSTR szVersionInfo,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue