Okay, the basic plan:
1. Call EnumerateServers to return an array of all the computers on
the network.
available at: http://datafast.cjb.net/
2. Resolve the HostNames into IP Addresses.
How to Resolve a Hostname Into an IP Address (from Randy Birch's site:
www.mvps.org/vbnet)
3. Resolve the IP Addresses from 2 into MAC Addresses. (from Randy
Birch's site: www.mvps.org/vbnet)
This is really confusing... for some reason when I call this, it
doesn't return anything. Which variable holds the return value? The
"dummy" parameter that is passed By Ref? (if you read his
explanation, he says assigning the return value back to the Function
name causes the routine to crash or something... didn't understand
that at all, but them I'm not a VB Jedi...)
4. Can I pass a host name to the OSVersionInfo function and have it
retrieve the info on a remote computer, or is that only possible on a
local machine? Or do I have to use some other function? If I need
another function, anybody have a link handy? (THANKS!!!)
Okay, when I get all this information for each computer on the
network, I can write it all to a database. That part's easy... well,
I'll have to do a little bit of modifying because AcK!cess 2000 won't
do things like support control arrays, but I can use the old name
trick... all controls have explicit names ending with a numeric
suffix, so I can loop that way...
Okay, so what's the problem? MAC address doesn't seem to resolve for
some reason. Any ideas? I thought I had to grab the value of the
variable passed to the GetRemoteMACAddress function... How should I do
that? Put the variable declaration as public or something on the same
form that contains the calling routines, so I can see it there? Or
just declare it global/public and forget about it? Yes, I know that's
not really tight scoping, but I don't see a whole lot of options...
Any pointers? (Yeah, I have one, but he's out hunting with Cletis and
Billy Bob...)
Thanks!
Pieter