Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 139 of file startmnu.c.
Referenced by CreateStartContextMenu().
{ TCHAR szBuf[MAX_PATH]; HRESULT hRet; /* Add the "Open All Users" menu item */ if (LoadString(hExplorerInstance, IDS_PROPERTIES, szBuf, sizeof(szBuf) / sizeof(szBuf[0]))) { AppendMenu(hPopup, MF_STRING, ID_SHELL_CMD_PROPERTIES, szBuf); } if (!SHRestricted(REST_NOCOMMONGROUPS)) { /* Check if we should add menu items for the common start menu */ hRet = SHGetFolderPath(hWndOwner, CSIDL_COMMON_STARTMENU, NULL, SHGFP_TYPE_CURRENT, szBuf); if (SUCCEEDED(hRet) && hRet != S_FALSE) { /* The directory exists, but only show the items if the user can actually make any changes to the common start menu. This is most likely only the case if the user has administrative rights! */ if (IsUserAnAdmin()) { AppendMenu(hPopup, MF_SEPARATOR, 0, NULL); /* Add the "Open All Users" menu item */ if (LoadString(hExplorerInstance, IDS_OPEN_ALL_USERS, szBuf, sizeof(szBuf) / sizeof(szBuf[0]))) { AppendMenu(hPopup, MF_STRING, ID_SHELL_CMD_OPEN_ALL_USERS, szBuf); } /* Add the "Explore All Users" menu item */ if (LoadString(hExplorerInstance, IDS_EXPLORE_ALL_USERS, szBuf, sizeof(szBuf) / sizeof(szBuf[0]))) { AppendMenu(hPopup, MF_STRING, ID_SHELL_CMD_EXPLORE_ALL_USERS, szBuf); } } } } }