2 ms·
They have API calls that fill user-supplied buffers that have room for MAX_PATH characters. See for example https://learn.microsoft.com/en-us/windows/win32/api
by Someone 3y ago
They have API calls that fill user-supplied buffers that have room for MAX_PATH characters.
See for example https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-findfirstfilea https://learn.microsoft.com/en-us/windows/win32/api/fileapi/..., which also shows how they gradually made the input argument more flexible:
- “By default, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, prepend "\\?\" to the path”
- “Starting with Windows 10, Version 1607, you can opt-in to remove the MAX_PATH limitation without prepending "\\?\"”
I also guess there’s lots of code that sees those paths (anti-virus software, device drivers)