How to check if a user has administrative privileges by user name/domain : How can I know if a user has administrative privileges if the only information that I have is the user name (and domain if relevant)?

I do know how to get this information for the current user.
However, in my case, I need to get this information for a user which is not logged in yet (I'm working on Credential Provider). Therefore, I can only use the user name & domain.

I'm working with C#/C++.