AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile
Hi All, Is there a way to get the computername or IP Address from the logged user For example search for for a user (logged in the network) and return computername or IP Address Any help is appreciated
Hi Say there are 50 people on the network, how are you going to search (i.e. by profile name, computer name) If by computer name cant you just use the GetComputerName API ? If by IP Address i have a little program which you enter a IP Address and it pings, if computer is turned off then it times out! Let me know how your searching! HTH
at the momment i use the NetWkstaGetInfo and NetWkstaUserEnum api to searching it work but take a long time with >6000 people on the network
Just thinking couldnt you put all ACTIVE users into an array and then loop through the array finding the user you want? HTH
That is exactly what i do in my code, but it take to much time with >6000 people on the network First get all ip adress and computername NetWkstaGetInfo and than get the workstation info NetWkstaUserEnum