[EXPLORER][SHELL32][SDK] Show/hide 'Run' menu item (#6592)

Improve Start Menu customization.
JIRA issue: CORE-16956
- Add SHSettingsChanged prototype to
  <undocshell.h>.
- Add SetRestriction helper function.
- Implement showing/hiding Run menu
  item of Start Menu.
This commit is contained in:
Katayama Hirofumi MZ 2024-03-11 10:54:12 +09:00 committed by GitHub
parent ede65b88bc
commit 5daab33c59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 26 additions and 12 deletions

View file

@ -49,14 +49,12 @@ typedef struct _TRAYNOTIFYDATAW
#endif /* defined (_SHELLAPI_H) || defined (_INC_SHELLAPI) */
/****************************************************************************
* Taskbar WM_COMMAND identifiers
*/
#define TWM_DOEXITWINDOWS (WM_USER + 342)
#define TWM_CYCLEFOCUS (WM_USER + 348)
/****************************************************************************
* IDList Functions
*/
@ -96,7 +94,6 @@ HRESULT WINAPI SHILCreateFromPathW (
BOOL WINAPI StrRetToStrNA(LPSTR,DWORD,LPSTRRET,const ITEMIDLIST*);
BOOL WINAPI StrRetToStrNW(LPWSTR,DWORD,LPSTRRET,const ITEMIDLIST*);
/****************************************************************************
* SHChangeNotifyRegister API
*/
@ -258,6 +255,7 @@ ExtractIconResInfoW(
/****************************************************************************
* File Menu Routines
*/
/* FileMenu_Create nSelHeight constants */
#define FM_DEFAULT_SELHEIGHT -1
#define FM_FULL_SELHEIGHT 0
@ -732,6 +730,8 @@ Activate_RunDLL(
_In_ LPCWSTR cmdline,
_In_ INT cmdshow);
BOOL WINAPI SHSettingsChanged(LPCVOID unused, LPCWSTR pszKey);
/*****************************************************************************
* Shell32 resources
*/