scvb
asked on
Type structure for LNK files
Hi all
Does anyone know the type structure for WIN95/98 Shell Link (LNK) files? I would like to have the ability to read the executable name contained within the LNK, so I can obtain it's icon.
TIA.
Regards,
Tony
Does anyone know the type structure for WIN95/98 Shell Link (LNK) files? I would like to have the ability to read the executable name contained within the LNK, so I can obtain it's icon.
TIA.
Regards,
Tony
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In general, depending upon interpreting a binary file with an undocumented format which is subject to change is a bad idea. There's a defined automation interface with which you can get the filename, IShellLnk.
In addition to alamo's comment, there's a very easy to use .TLB on your VB-cdrom in the TOOLS\UNSUPPRT\SHELLLNK directory. It comes with an example and you can easily get whatever you want from an icon.
Regards, Abel
Regards, Abel