RAS User Administration Functions
Use the following functions to manage dial-up users:
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.