Access files over a Windows network with a maximum length of MAX_PATH

I use C ++ and access the UNC path over the network. This path is slightly larger than MAX_PATH. Therefore, I cannot get the file descriptor.

But if I run the program on the computer in question, the path is no more than MAX_PATH. Therefore, I can get the file descriptor. If I rename a file to have fewer characters (minus the length of the computer name), I can access the file.

Is it possible to access this file over the network, even know that the computer name in the UNC path puts it in the MAX_PATH limit?

+3
source share
2 answers

, , , \\?\ , MAX_PATH. MSDN:

http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx

, : \\?\unc\server\share\path\file. \\?\unc\ .

+10

, , (8.3) . ?

0

Source: https://habr.com/ru/post/1697307/


All Articles