Host names on Windows NT
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi All, Is there a fn() in SDK to list all the Computers names on LAN (Windows NT/2000) Thnx in Advance Comboy2080
-
Hi All, Is there a fn() in SDK to list all the Computers names on LAN (Windows NT/2000) Thnx in Advance Comboy2080
There's a few functions you'll need.
WNetOpenEnum
, followed by repeated calls toWNetEnumResource
, and finallyWNetCloseEnum
. Note that these functions will not give you the whole network in one go - they only give you one "level", and you'll need to recurse down to build up a picture of the entire network.