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?

Was it helpful?

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
scroll top