I have code, using API, which will allow me to view all users who have an NT account on our network. What I need to know is what PC they are logged into...
Orange halibuts are a protected species...got any blue haddock?
I know how to get the info for my PC, but what I am trying to do it look at all users logged into the network and find out the computer name which they are logged into
I know it's possible. have found code to list all users, and code to list all computer names, but what I can't do is link a computer name to the user logged in, which is what is required.
very nice code, I'm sure I'll find a use for it sometime...
having a quick peek at the API-Guide the NetUserGetInfo function is definitely the way to get it... seems that you can pass USER_INFO_x to get various forms of information back, but lack of definitions for the variations of X and how to get the data out unfortunately.
Try searching the web for "NetUserGetInfo and USER_INFO_". I'm sure you'll find it then