Enumerating network shared directories in C++ / MFC
-
03-07-2019 - |
Question
I need to get a list of directories shared by the current computer, and their shared names. How do I do this in C++ / MFC?
Solution
You can use NetShareEnum, supplying NULL as the server name. You need to include Lm.h and add Netapi32.lib to the list of libraries linked,
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow