News for hackers. Stuff that matters.
Re:How long filenames were added in Windows 95 to be backwar... by WayneDB on Sunday September 04, 2011 @03:29PM (#2960125)
Broken is a point of view. Backwards compatibility is important to Microsoft.
Re:How long filenames were added in Windows 95 to be backwar... by pointyhat on Sunday September 04, 2011 @06:10PM (#2960429)
They broke it on day one. Basically we are stuck with a bad decision. It's a Win32 subsystem specific problem. Both NT and NTFS do not have this issue internally.

It's not backwards compatibility - it's just a turd.

Re:How long filenames were added in Windows 95 to be backwar... by archangel_one on Sunday September 04, 2011 @06:21PM (#2960449)
It is backwards compatibility, because there are a fantastic number of programs out there that simply allocate a MAX_PATH sized buffer and assume that a single file path has to fit into it. If MS simply changed things so that paths of 500 characters could be returned all those programs would fail.
Re:How long filenames were added in Windows 95 to be backwar... by rbanffy on Sunday September 04, 2011 @07:07PM (#2960532)
> all those programs would fail.

And, hopefully, be rewritten.

Or, you could have a new set of API calls without this limitation. This new API could also receive a version argument, so that calls to its present version would return present-style data, even if the then-current implementation were much smarter. It's so obvious, in fact, I wouldn't be surprised if they already did it.

Re:How long filenames were added in Windows 95 to be backwar... by ephemient on Sunday September 04, 2011 @09:21PM (#2960787)
As said above, it's only Win32 that's broken. NT filenames (e.g. \\?\...) aren't limited by MAX_PATH.
Re:How long filenames were added in Windows 95 to be backwar... by rbanffy on Sunday September 04, 2011 @09:41PM (#2960823)
How well documented is the NT kernel APIs? I remember reading the documentation is a little sparse (no first-hand experience)
Re:How long filenames were added in Windows 95 to be backwar... by btn on Sunday September 04, 2011 @11:44PM (#2961056)
These aren't kernel APIs. In most cases, you can simply call the Unicode version of the same functions and prepend "\\?\".