AW: [pro_vb] Re: List all the computer names on the network
Hi
I've never tryed but you will find some useful information on
http://www.allapi.net/apilist/WNetOpenEnum.shtml
and a lot of more api calls for WNet ;)
cheers Kilian
-----Ursprüngliche Nachricht-----
Von: Mark Roworth [mailto:mark.roworth@b...]
Gesendet: Sonntag, 24. November 2002 10:25
An: professional vb
Betreff: [pro_vb] Re: List all the computer names on the network
Hi group,
I stored away the email below as I thought I might need it in the future.
And now I do. I am not very experiences with API calls; does anyone have any
sample code of using WNetOpenEnum to get me started. Would be most grateful,
Mark Roworth
Dolphin Computing Ltd
01273 262865
mark.roworth@b...
-----Original Message-----
From: David Biggins [mailto:David_Biggins@U...]
Sent: 01 February 2002 10:23
To: professional vb
Subject: [pro_vb] Re: List all the computer names on the network
I don't have time today to write the code, but from the MS documentation:
"To enumerate all network resources, an application can begin the
enumeration by calling WNetOpenEnum with lpNetResource pointing to a
NETRESOURCE structure specifying the root of the network, then using the
returned handle with WNetEnumResource to enumerate resources. If one of
the resources in the NETRESOURCE array returned by the WNetEnumResource
function is a container resource, WNetOpenEnum can be used to open the
resource for further enumeration. "
If you're NOT running 9x/ME, then perhaps NetServerEnum may be easier...
Yell next week if you need more detail. I should be less busy then.
> Can anyone help me to write a VB code to list all the computer names in
> the Network.