How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
Hi everyone, i've checked out around the forum something about this question, but the answers i've found didn't satisfied me, so I decided to open a new thread.
I have a PC connected to my LAN with other PCs, under the same WorkGroup called "Workgroup" (!!). The first question is: how to get all PC's IP address connected to the LAN belonging to my workgroup from a Client PC ??
Re: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
yes, Deepak. Thanks for the code... but as chris said to you it gives me only the local name of my PC ....
I found ... searching on the forum a thread about this issue that resolves my question. 'RobDog888' gets the solution with a class ( I post here so in case someone needs it !!).
Re: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
<StructLayout(LayoutKind.Sequential)> _
Public Structure SERVER_INFO_100
Dim sv100_platform_id As Integer
Dim sv100_name As Integer
End Structure
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
Public Structure SERVER_INFO_101
Dim dwPlatformID As Integer
Dim lpszServerName As String
Dim dwVersionMajor As Integer
Dim dwVersionMinor As Integer
Dim dwType As Integer
Dim lpszComment As String
End Structure
I would like to know what does means these lines, in particular this "<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _". It seems like a c++ template declaration ...
It's just a curiosity!!!
Let me know! Thanks in advance!