I created in C++ an internet shortcut for windows in the start menu. Everything is fine, but how can i add a tooltip to this shortcut?
I could not find somethink like I ShellLink::SetDescription for shell links.
...
QString internetAddress = "http://www.blabla.de";
IUniformResourceLocator *pURL = NULL;
CoInitialize(NULL);
HRESULT hres;
hres = CoCreateInstance(CLSID_InternetShortcut, NULL,
CLSCTX_INPROC_SERVER, IID_IUniformResourceLocator, (LPVOID*)&pURL);
if(SUCCEEDED(hres))
{
IPersistFile *ppf = NULL;
hres = pURL->SetURL((LPCWSTR)internetAddress.utf16(), 0);
if(SUCCEEDED(hres))
{
hres = pURL->QueryInterface(IID_IPersistFile, (LPVOID*)&ppf);
if(SUCCEEDED(hres))
{
hres = ppf->Save((LPCWSTR)linkFilePath.utf16(), TRUE);
ppf->Release();
}
pURL->Release();
}
}
...