Tech Support > Microsoft Windows > Drivers > Network Neighborhood
Network Neighborhood
Posted by John Thompson on July 28th, 2004


I'm trying to build a list of NetBIOS names all of the computers connected
to my LAN. In user-level land, I would call WNetOpenEnum to start an
enumeration of network, then I could call WNetEnumResource to continue an
enumeration of these network resources, then I could just check if the
resource was a machine and I could save the name.

I have no idea where to begin in driver land to accomplish this task. Could
somebody give some direction?

Thank you,
-- John


Posted by Stephan Wolf [MVP] on July 28th, 2004


1. Why would you ever want to do so?

2. You could write an NDIS protocol (or intermediate) driver and
listen for NetBIOS packets and/or query NetBIOS names. (Remember that
NetBIOS is available on top of TCP as well as NetBEUI.)

3. Write a user-mode application (or service) that builds the list and
passes it down to your driver via IOCTL.

Stephan
---
On Wed, 28 Jul 2004 13:50:22 -0400, "John Thompson"
<johnthompson1@hotmail.com> wrote:

Posted by Maxim S. Shatskih on July 29th, 2004


Nearly impossible. Will require major digging into the undocumented IOCTLs
to NetBT.sys.

So, it is by far better to do name resolution in user mode, and only work
with IP addresses in the kernel.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"John Thompson" <johnthompson1@hotmail.com> wrote in message
news:4107e667@news.xetron.com...



Similar Posts