>Thanks for the response. I have programs which indicates which users are logged into that one in particular. What I wanted was for a generic program to send some messages to all the NT users, view their screen etc, shutdown their PC etc. (I know that's too much but I guess its possible without having to create a table and all the users to check for this table every now and then). I wanted to use Winsock to do that and try.
>
>I was just wondering, when we double click the "Network Neighborhood" it pops up with all the active users. There must be somewhere in NT server this information must have been stored. Isn't it?
>
No, it displays the NetBIOS names of the machines in your current scope that have some shared resource available. It doies not rely on the Socket layer to resolve this. You can get this information via the API - VFP 6 has the ANETGETRESOURCE() function, and my NETRESOURCE class in the files section can be used to get the same kind of information using API calls.
You may want to look into ADSI as well.