J
J
John2020-10-14 17:14:31
C++ / C#
John, 2020-10-14 17:14:31

How to get a list of computers on a local network (workgroup) in C#?

Good day. I ask to help who is aware and faced such problem.
I wrote a C# program and it used a network scanner on winapi through the NetServerEnum method.
Everything worked. But after updating windows 10 for some reason it stopped.
When working, it gives the result, code: 64, and this is not even on the list on the site.
Maybe someone came across and found a way out? Or maybe there are other normal ways to get information about computers on the network?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
acwartz, 2020-10-14
@acwartz

And they will not be on the site, because. the site is not a cake and not the same, but WinAPI error codes have exceeded 9k.
if I vanguy correctly, then the code is the WinAPI error code. And his guides are here .


ERROR_NETNAME_DELETED
64 (0x40)
The specified network name is no longer available.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question