how to make program`s shortcut
-
HI, I have realy hard task. I need create program`s shortcut and I found on the Internet, that I must use IShellLink interface. But on Microsoft site (MSDN) I found the code - http://msdn.microsoft.com/library/...[^] - and this code doesn`t work ... function CoCreateInstance failure (I think)... piece of code: HRESULT hres; IShellLink* psl; hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID*)&psl); :confused: Tomas :confused:
-
HI, I have realy hard task. I need create program`s shortcut and I found on the Internet, that I must use IShellLink interface. But on Microsoft site (MSDN) I found the code - http://msdn.microsoft.com/library/...[^] - and this code doesn`t work ... function CoCreateInstance failure (I think)... piece of code: HRESULT hres; IShellLink* psl; hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID*)&psl); :confused: Tomas :confused:
Take a look at CShellLink. HPS HwndSpy - GUI developer's aid to visually locate and inspect windows. For the month of August only, use coupon code CP-81239 for 30% off.