views:

186

answers:

1

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?

+2  A: 

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,

moogs