Spelling error. I meant:
If you have many servers, then you may get many equal answers. If the user is logged in, but not attached to any servers, you won't find him.
And I forgot to say, that each NetSessionEnum returns an array of results, so you must go through each result. (If the user is...
I know how.
In a NT4.0-domain, do the following:
1. Use NetGetDCName(..,domainname,...) to find the PDC.
2. Use NetServerEnum() to find all the servers in your domain. (Not workstations).
3. For each server use NetSessionEnum(server,NULL,username,10,&buffer,...) If it returns NERR_Success...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.