在我的 c# winForm 应用程序中,我必须识别来宾帐户是否正在运行该应用程序。任何想法?
问问题
823 次
1 回答
10
您可以检查IsGuest
current 的属性WindowsIdentity
:
if (System.Security.Principal.WindowsIdentity.GetCurrent().IsGuest)
{
// it's a guest account
}
于 2010-06-17T11:26:05.473 回答