In my c# winForm application I have to recognize if a 开发者_C百科guest account is running the application. Any idea?
You can check the IsGuest
property of the current WindowsIdentity
:
if (System.Security.Principal.WindowsIdentity.GetCurrent().IsGuest)
{
// it's a guest account
}
精彩评论