From: JRB on
I need to programmatically enumerate the volumes on a server from a
workstation. Pretty much every search on "enumerate volumes" comes up
with FindFirstVolume/FindNextVolume but these only work on the local
machine.

I can achieve this indirectly, e.g. by searching for shares and
looking for c$, d$ etc, but I figure there has to be an API to do this
directly. Any suggestions?

TIA, John
From: Sten Westerback (MVP SDK 2005-6 :) on

"JRB" <john(a)jrbsoftware.com> wrote in message
news:f05a1fc0-86cf-4b83-bad6-d9eea7730c81(a)f1g2000prb.googlegroups.com...
>I need to programmatically enumerate the volumes on a server from a
> workstation. Pretty much every search on "enumerate volumes" comes up
> with FindFirstVolume/FindNextVolume but these only work on the local
> machine.
>
> I can achieve this indirectly, e.g. by searching for shares and
> looking for c$, d$ etc, but I figure there has to be an API to do this
> directly. Any suggestions?

These comes into my mind

WMI Win32_Share
NetShareEnum()