User Lists and if administrator rights

Does anybody know how to receive the userslist from a domain, so I can
develop a new usermanager for Windows NT. Where is this file stored or is
there some API function to retrieve the list? I also want to know how I can
chack if  a user with administrator rights is logged on in order to give him
grants to make changes in that user list.

Tom