U
U
up72018-02-13 09:15:59
.NET
up7, 2018-02-13 09:15:59

How to increase max path for BrowseForFolder?

Hello!
There is a program in which I use this function:
folder = shell.BrowseForFolder((int)0, "Folder selection", 0, 0);
Everything works fine if the file system is on the computer, while the system, as I understand it, forms sim links itself, that is, choosing the final folder with a length of even more than 256 characters is not a problem.
But when I connect the phone, an error occurs.
Tell me how to solve the problem? Googled in the direction of connecting unicode functions, but I don’t know how to do it.
The address is obtained on a phone like this:
::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\\?\usb#vid_19d2&pid_0307#900501755192#{6ac27878-a6fa-4155-ba85-f98f491d4f33}\SID-{20001 }\{00001AC3-0001-0002-0000-000000000000}\{00001AFB-0001-0002-0000-000000000000}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question