Tony Mason wrote:
At this point, we really should be treating applications with such
restrictions (like using MAX_PATH_LEN) as being fundamentally broken.
The problem is that application developers have no choice - things like
the C Runtimes and even the CreateFile API are hardcoded to these
limits. You have to use a trick to bypass the limits of CreateFile…
fix that (and the runtime) and applications will work.
Using the predefined OS constants to check user input is *not* broken -
it’s sensible application design.
Tony