Hi everyone:
My goal is to call IContextMenu::InvokeCommand on a default command of a context menu for a shortcut. I can get a reference to the IShellLink the following way:
but how do I get a reference to IContextMenu then?Code:IShellLink* pshl; IPersistFile* ppf; CoCreateInstance(CLSID_ShellLink, ..., &pshl); pshl->QueryInterface(IID_IPersisFile, &ppf); ppf->Load(pShortcutFilePath, STGM_READ);
Thank you!




Reply With Quote