获取当前用户的SID作为字符串。c++
我一直在想如何在c#中获得sid --这很简单:System.Security.Principal.WindowsIdentity.GetCurrent().User.Value;
System.Security.Principal.WindowsIdentity.GetCurrent().User.Value;
如果有人能给我一个简短的解决方案,让SID成为std::string,我会很高兴的。
发布于 2021-05-07 07:59:19
请参阅这些WINAPI函数:
。
https://stackoverflow.com/questions/67428492
相似问题