480{
487 HMENU favoritesHMenu;
491 static const TCHAR szFavoritesKey[] =
492 _T(
"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MenuOrder\\Favorites");
493
498
499
502 return hResult;
503 hResult = parentMenu->GetMenu(&parentHMenu, &ownerWindow,
NULL);
505 return hResult;
507 if (favoritesHMenu ==
NULL)
509
511 {
514 return hResult;
517 return hResult;
518
521
524 return hResult;
525
526 hResult = newMenu->SetShellFolder(favoritesFolder, favoritesPIDL, orderRegKey, SMSET_BOTTOM | SMINIT_CACHED | SMINV_ID);
527 if (favoritesPIDL)
529
531 return hResult;
532
534 }
535
536 hResult =
fFavoritesMenu->SetMenu(favoritesHMenu, ownerWindow, SMSET_TOP | SMSET_DONTOWN);
538 return hResult;
539
541}
#define FAILED_UNEXPECTEDLY(hr)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
void WINAPI ILFree(LPITEMIDLIST pidl)
#define IsEqualIID(riid1, riid2)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define HKEY_CURRENT_USER
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
#define IID_PPV_ARG(Itype, ppType)