I'm writing an application with Visual C++ 6.0 on Windows 2000. I would like to determine user privileges based on a user being in a group. For example, a user that logs in and that user is in the group TestAdmins. In the applicatin, I want to be able to take the username that is logged in and find out if they are currently a member of the group TestAdmins. I've read a little about ADSI but not sure if this is the way I should go.
Any help is truly appreciated.