By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,089 Members | 2,069 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,089 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Jan 22 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
In article <#q*************@TK2MSFTNGP06.phx.gbl>,
Frank <fr***@a-znet.comwrote:
>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
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Jan 22 '07 #2

P: n/a
They are not text and I don't know the structure
thanks

"Nathan Mates" <na****@visi.comwrote in message
news:12*************@corp.supernews.com...
In article <#q*************@TK2MSFTNGP06.phx.gbl>,
Frank <fr***@a-znet.comwrote:
>>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
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A.
Heinlein

Jan 22 '07 #3

P: n/a
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
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


Jan 23 '07 #4

P: n/a
I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewrote in message
news:uu**************@TK2MSFTNGP05.phx.gbl...
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's
vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>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



Jan 23 '07 #5

P: n/a
You must use COM to manage IShellLink (using for that CLSID_ShellLink und IID_IShellLink)

Take a look that (be careful, the address is too long and may appear cut)
http://msdn.microsoft.com/library/de...ll_int_program
ming/shortcuts/shortcut.asp

Regards
--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comwrote in message news:uO**************@TK2MSFTNGP04.phx.gbl...
I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewrote in message
news:uu**************@TK2MSFTNGP05.phx.gbl...
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's
vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
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



Jan 24 '07 #6

P: n/a
thanks for the info
"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:eI****************@TK2MSFTNGP04.phx.gbl...
You must use COM to manage IShellLink (using for that CLSID_ShellLink und
IID_IShellLink)

Take a look that (be careful, the address is too long and may appear cut)
http://msdn.microsoft.com/library/de...ll_int_program
ming/shortcuts/shortcut.asp

Regards
--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comwrote in message
news:uO**************@TK2MSFTNGP04.phx.gbl...
>I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewrote in message
news:uu**************@TK2MSFTNGP05.phx.gbl...
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's
vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
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




Jan 25 '07 #7

P: n/a
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

" Frank" <fr***@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
thanks for the info
"Cholo Lennon" <ch*********@hotmail.comwrote in message
news:eI****************@TK2MSFTNGP04.phx.gbl...
>You must use COM to manage IShellLink (using for that CLSID_ShellLink und
IID_IShellLink)

Take a look that (be careful, the address is too long and may appear cut)
http://msdn.microsoft.com/library/de...ll_int_program
ming/shortcuts/shortcut.asp

Regards
--
Cholo Lennon
Bs.As.
ARG

" Frank" <fr***@a-znet.comwrote in message
news:uO**************@TK2MSFTNGP04.phx.gbl...
>>I've been searching but the search key you gave me give new hits.

thanks
"Christian Kaiser" <bc**@gmx.dewrote in message
news:uu**************@TK2MSFTNGP05.phx.gbl...
Google mal nach CLSID_ShellLink und IID_IShellLink. Ab da geht's
vermutlich
von selbst weiter... ;-)

Ch.

" Frank" <fr***@a-znet.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
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




Jan 25 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.