I need to read the Description from a Windows .lnk file. I have seen plenty of code to get the target filename, but I need the Description field.
The code that I found for reading the Description field always used a hardcoded filename for the .Lnk file, but when I try to use a filename that is stored in a string it doesn't work (array is incompatible with widestring).
I'd like to just call a method like this:
LinkDescription := GetLinkDescription( aLinkFileNameInAString );
It should run in Delphi 2010.
Thanks for your help.