Hi,
it looks like Microsoft introduced something like a "maximum duration of IRP_MN_QUERY_DIRECTORY" in Windows 11 KB5072033.
It is not possible to change into a folder, that takes more than 1 seconds for the first IRP_MN_QUERY_DIRECTORY request to list the contents.
Unfortunately, since Dokan fetches the whole list of contents before answering the first IRP_MN_QUERY_DIRECTORY, it can easily take more than that, if there're lots of entries in the folder (at the moment, I can reproduce the problem with about 25.000 subfolders.
This is more like an information for everybody, since I can't see a real solution for this, as long as there's nothing like a multiple callback for this to fill the list of contents in chunks.
Or maybe somebody know about a setting in Windows to disable this behaviour, or to adjust the maximum allowed duration.
Regards,
Uwe