Can anyone direct me to an API call or show me an example of some code that would check to see what a users effective rights are for Windows NT.

I want to create a check for the following users listed below and use this check to determine whether or not a program will be allowed to run based on the users rights.

Example: administrator, poweruser, user.


Thanks in advance.

Bernie B