I need to list all the files in a shared folder. My file search program is throwing me a message saying that "The file name length must be less than 248 characters long".
But some paths in my UNC shares have more than 2000 characters.
How should I get the long file names using C#?
Do I have any Win32 API function to achieve this?