I'm looking for this and I couldnt find anything to help me. I think it is simple, what i need to do is to show the shared folders in my network, using boost libraries.
For example
std::string dir = "/home/user";
for (boost::filesystem::directory_iterator it(dir), end; it!=end; it++)
if (boost::filesystem::is_directory(*it))
cout << it->path().filename().generic_string();
This shows me all folders in the path "/home/user"
. The question is, whats is the dir
that i need to use to show my shared folders in my network? I try "\\", "\\my_pc_name", "\\Workgroup"
but i have no idea and i don't know if i can do this in this way.
Thanks.