[英]How to determine a thread impersonation level
I'm debugging a thread impersonating a currently logged on user in a Windows service process running under SYSTEM
account. 我正在调试模拟在
SYSTEM
帐户下运行的Windows服务进程中当前登录用户的线程。 How could I determine the current impersonation level (as in whether impersonation or delegation was used) either programmatically, or using Visual Studio debugger or other tools? 如何以编程方式或使用Visual Studio调试器或其他工具确定当前的模拟级别(如是否使用了模拟或委派 )?
最简单的方法是通过Visual Studio $user
伪变量 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.