Using a UNC path such as \\1.2.3.4\drive\dir\myfile.txt
I can access files on a remote machine.
I can make a connection using WNetAddConnection2 programatically
or I can just type \\1.2.3.4\
in the explorer address bar, and then Windows will prompt me for user credentials etc.
How can I list the UNC drives that the local machine is connected to for the current user?
I tried this example using WNetEnumResource - it lists nothing I find useful.
I also found this example using NetShareEnum, but it seems only to list who is connected to a specified remote machine.
I want to list all UNC drives that the local machine is connected to (which must not have necessarily have a local drive letter). How can that be done?