harriyott
harriyott

Reputation: 10645

Enumerating network shared directories in C++ / MFC

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

Answers (1)

moogs
moogs

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

Related Questions