The best use for this method is probably not to create new files, but to manage existing files, which someone else may have created.
I managed a file server which routinely would get files with path_length > MAX_PATH
. You see, the users saw the files as H:\myfile.txt
, but on the server it was actually H:\users\username\myfile.txt
. So if a user created a file with exactly MAX_PATH
characters, on the server it was MAX_PATH+len("users\username")
.
(Creating a file with MAX_PATH characters is not so uncommon, since when you save a web page on Internet Explorer it uses the page title as the filename, which can be quite long for some pages).
Also, sharing a drive (via network or usb) with a Mac or a Linux machine, you can find yourself with files with names like con, prn or lpt1. And again, the prefix lets you and your scripts handle those files.