Clearout,
I have recently written a function that uses NetShareEnum.
It works perfectly (it even returns hidden shares, printers a.s.o)
BUT, microsoft discourages the use of the 'old' LanMan functions and
suggests the WNet-API's.
The WNet-examples I have tested were VERY slow, and are no substitute for
the 'old' LanMan API's while they are still working.
If, in spite of Microsoft's preference, you are still interested in the code
please request by mail...
bye,
Richard,
---------------------------------------
Quote:
>Can anyone help
>Im tryin to write a routine that can retireve a list of shares from a
>particular resource.
>Ie, in a text box I type in \\SERVERNAME
>In a listbox it returns the shares found on \\SERVERNAME
>I cannot seem to get WNETENUMRESOURCE to do this.
>Any ideas/examples please..
>Thanks