dear all

i am using this code to let the application know if the user logged is as administrator or normal user
Code:
 WindowsIdentity windowsIdentity = WindowsIdentity.GetCurrent();
            //To show user name use
            //windowsIdentity.Name.ToString()

            WindowsPrincipal windowsPrincipal = new WindowsPrincipal(windowsIdentity);
            //To check if user is administrator use IsInRole method
            //    MessageBox.Show("Is Adminisitrator = " + windowsPrincipal.IsInRole(WindowsBuiltInRole.Administrator));

            if (windowsPrincipal.IsInRole(WindowsBuiltInRole.Administrator) == true)
            {
                admini = "1";//admisnistrator
            }
            else
            {
                admini = "2";//non-admisnistrator
            }
it is working well but the problem is when a normal user has the privileges of administrator

this code detects that he is not administrator while he has the privileges to work as admin.


i want the normal user that has the privileges to work as admin to use my application correctly but i can not

any idea