lnk file

  • Thread starter Thread starter Hilton
  • Start date Start date
H

Hilton

Hi,

What are think first few characters in a lnk file on a Pocket PC? e.g.
"55#". Can I just create such a text file and drop in "...\Programs'
directory?

I tried a search, but couldn't fnid the info. Thanks,

Hilton
 
Chris,

Any idea what they're required/used for? And, let's say the numbers are
wrong, will anything break? Are those characters there so that more 'data'
can be placed after the link? If so, why not just start that data on the
next line?

Just curious (it seems so archaic)

Hilton
 
It is archaic, but my guess is it's been that way since 3.1, and since MS
likes to maintain backward compatibility, that's just how it is. I don't
know if they're used, as I've never really tried deviating from the right
mechanism. My guess is that it was a provision to allow LNK files to have
more data than just the file path.

-Chris
 
You can put your command line parameters in the file, after the name of the
program to be run. What's the problem? If you're writing the file, put the
right length in front of it... Contrary to what you're saying, I'd say that
this form is actually more modern than line breaks. If the length is
present, you can assure that there is no buffer overflow error when the data
from the shortcut is read.

Paul T.
 
Paul said:
You can put your command line parameters in the file, after the name of
the program to be run. What's the problem? If you're writing the file,
put the right length in front of it... Contrary to what you're saying,
I'd say that this form is actually more modern than line breaks. If the
length is present, you can assure that there is no buffer overflow error
when the data from the shortcut is read.

Actually Paul, I think it is quite the opposite; e.g.

10#\Program Files\BlaBla\GrabControl.exe

Hilton
 
You lost me. What's wrong with what you put there? It won't work, but
there's *zero* chance of a buffer overflow. If the file just contained some
random strings, how much buffer space would the shell have to allocate to
read the data? It can't know ahead of time; good chance of there being a
weakness there.

Paul T.
 
Back
Top