Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从服务器端获取命名管道客户端的用户令牌。我找到了 ImpersonateNamedPipeClient ,但我只想从它的令牌中查询一些信息,例如 sessionId。(我无权访问客户端代码)提前致谢。
您可以使用OpenThreadTokenafterImpersonateNamedPipeClient检查客户帐户权限,byGetTokenInformation或 by AccessCheck。
OpenThreadToken
ImpersonateNamedPipeClient
GetTokenInformation
AccessCheck