Avatar of henrybaxter
henrybaxter
 asked on

Get Link (.lnk) or Shortcut target *without* COM

I'm looking for a way to determine the properties, particularly the target, of a shortcut or lnk file.

I want to do this without using COM at all. My best lead so far is SHGetNewLinkInfo, but this seems to not do what I want, and I can't find any sibling functions.

Thanks for your time
Microsoft DevelopmentC

Avatar of undefined
Last Comment
henrybaxter

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
jkr

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jkr

BTW, you'll find an unofficial documentation of the file format at http://www.wotsit.org/download.asp?f=shortcut&sc=269805009
henrybaxter

ASKER
Thanks for your very detailed response. I was hoping to avoid COM for a couple reasons, but it looks like that's the way to go regardless!

Thanks again
henrybaxter

ASKER
Not a way to go without COM, but a very detailed and accurate response. The link to the lnk file format was instructive (but ultimately not for me)
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck