I have written a program that basically pulls a computer name from an ingres database, and then searches for the associated IP number on the NT network. What I would also like to do is retrieve other information from the computer name such as User Login Name, Login Time, etc.

I have searched through API's such as WIN32 and WSOCK but cannot find any related info.

I currently user WNetGetUserA which retrieves the login name on my machine and
GetHostByName to retrieve the IP of any Computer name I type in.

Is there a way I can enter the IP or Computer Name and retrieve the login name from that machine???

Please help ... any ideas are welcome.

yours gratefully

M.