PDA

Click to See Complete Forum and Search --> : Finding login name on client machine


Milleniux
Nov 10th, 1999, 03:43 PM
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.

smalig
Nov 10th, 1999, 03:51 PM
Test this sample: http://smalig.tripod.com/vb/079907.html

------------------
smalig
smalig@hotmail.com
smalig.tripod.com (http://smalig.tripod.com)

Milleniux
Nov 10th, 1999, 04:05 PM
Thats the code I want (cheers)... but what I want to be able to do is actually type in an IP number or computer name and then retrieve the user login (or computer name) from a particular clients machine (not my machine details)... is there a way?

cheers
M.