CSharp examples for Operating System:Windows
current Windows NT User
using System.Web; using System.Security.Principal; using System.Linq; using System.Collections.Generic; using System;//from ww w . ja v a2 s . c o m public class Main{ public static string currentNTUser() { myuser = WindowsIdentity.GetCurrent().Name; return myuser; } }