How do I get a shotcut target path?
-
Hi all, Given a string containing the shortcut name, how do I get the shortcut target path? I tried to use BOOL SHGetShortcutTarget(...) but to no avail... My MSC++ couldn't find it, even after including Shellapi.h and linking to Shortcut.lib. Any one has a clue on how to do this? Thx! /T
-
Hi all, Given a string containing the shortcut name, how do I get the shortcut target path? I tried to use BOOL SHGetShortcutTarget(...) but to no avail... My MSC++ couldn't find it, even after including Shellapi.h and linking to Shortcut.lib. Any one has a clue on how to do this? Thx! /T
AFAIK SHGetShortcutTarget is for WinCE only. I assume you're not using WinCE cos you'd probably have said so... Frankly, i'd use the CShellLink class available on this site. You'll also note that links like those which link to microsoft office are in fact special kinds of links which the API can't decode. and they're not documented. It's annoying. Sorry to dissapoint you all with my lack of a witty or poignant signature.