[This is preliminary documentation and subject to change.]
To obtain a list of current users on a particular domain, use the NetQueryDisplayInformation function. The prototype for this function is in the lmaccess.h header file.