WindowsIdentity

  • Thread starter Thread starter Alberto
  • Start date Start date
A

Alberto

I'm using the class System.Securiry.Principal.WindowsIdentity to find out if
the user is administrator or not. It works very well in my machine (Wxp
professional) but it doesn't in my customer computer (it is a W98). The help
of this class says: platforms: Windows NT Server 4.0, Nt, W2000, Xp home, Xp
professional and W2003.

The question is: How can I find out in witch operating system is running my
application?
and How can I find out if the user is administrator in W98?

Thank you
 
I'm using the class System.Securiry.Principal.WindowsIdentity to find out if
the user is administrator or not. It works very well in my machine (Wxp
professional) but it doesn't in my customer computer (it is a W98). The help
of this class says: platforms: Windows NT Server 4.0, Nt, W2000, Xp home, Xp
professional and W2003.

The question is: How can I find out in witch operating system is running my
application?

System.Environment.OSVersion can be used to get the OS info. If the
Platform is PlatformID.Win32NT then it is NT/2000/XP/Server2003.
and How can I find out if the user is administrator in W98?

Windows 98 has no real concept of administrator or limited user. In
Windows 95/98/ME basically everyone is an administrator on their machine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top