Link to home
Start Free TrialLog in
Avatar of pede
pede

asked on

Enumerating shares

Hi, I've looked around a bit for an API call to enumerate shares when given a machine name, but I couldnt find one.

Like - GetShares('\\SomePC')

I only need directories, btw, not printers and such.

Thank you,
Pede
ASKER CERTIFIED SOLUTION
Avatar of edey
edey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
listening
Avatar of pede
pede

ASKER

Hi, Im not at work now, but I will have a closer look when I get there. I did find those two functions though, and I dont need to find computers on the network. I already got the computername, I need the shared directories on the computer. Maybe that is possible with those functions too, but Im not sure how.
Avatar of pede

ASKER

Hi, I had forgot all about this question.

A few hours ago I searched Google for 'enumerating shares' because the above question was starting to get urgent. And as the very first result I get my own question on EE :-) After fiddling around for a while I solved it with the enum functions, thanks for the suggestions.