Board index » delphi » NetBios computers' names?

NetBios computers' names?


2004-03-06 09:38:07 AM
delphi235
Hello,
Could someone help me how do i obtain list of names for computers which are
currently in my LAN?
Also i guess i can only get names of those which share the same workgroup?
Thank you,
Andrey
 
 

Re:NetBios computers' names?

On 06/03/2004 03:38:07, MuZZy writes:
Quote
Could someone help me how do i obtain list of names for computers
which are currently in my LAN?
Use the WNetEnumResources function.
I have a simple component that does this for you at
www.shorterpath.com/develop/spfree.
--
Yorai Aminov (TeamB)
(TeamB cannot answer questions received via email.)
Shorter Path - www.shorterpath.com
Yorai's Page - www.yoraispage.com
 

Re:NetBios computers' names?

Yorai Aminov (TeamB) writes:
Quote
Use the WNetEnumResources function.

I have a simple component that does this for you at
www.shorterpath.com/develop/spfree.
<plug>
If you're frequently doing LAN-Manager related stuff, check out Colin
Wilson's lanman package:
www.wilsonc.demon.co.uk/delphi3.htm
www.wilsonc.demon.co.uk/Delphi3Components/lanman/lanman.zip
Yes, it works under newer Delphi versions too. :)
</plug>
--
Ben