read .lnk files, modify the data and rewrite the file

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Years ago I wrote a program to read .lnk files, modify the data and rewrite
the file.

I modified it slightly and used it for .pif files.

I can't find it nor can I find the API calls I used.

Can you direct me to some info on this subject?


thanks
 
Years ago I wrote a program to read .lnk files, modify the data and rewrite
the file.
I can't find it nor can I find the API calls I used.

If you're using C/C++, why not use the quite-standard and portable
fopen/fread/fwrite/fclose functions? If the files are text, then you
can use fopen/fgets/fprintf/fclose.

Nathan Mates
 
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's vermutlich
von selbst weiter... ;-)

Ch.
 
Can anyone say something about .pif files.

They appear to be managed with the same API calls

I have some old ones that are less than 300 bytes long.

If I use a program I found that reads .LNK files it reads the .pif file ok
except it misses the command line.

If I use explorer to show the properties, when I close the properties the
file it is recreated as over 2000 bytes long. I think the original was 8-bit
character strings and the new on still contains that but adds 16-bit
character strings.

Does anyone know anything about any of this??


THANKS
 
Back
Top