>sorry. what I was trying to determine was what network a PC is connected to?
Your best bet would be to retrieve the UNC of a mapped drive; the server name is the first part of the UNC. You could then spin through a list of visible systems using something like the code from my NETRESOURCE class to discover what type of LAN it's under based on the root of the domain.