Reputation: 10645
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?
Upvotes: 2
Views: 1850
Reputation: 8202
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,
Upvotes: 3