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.
C# プログラムに関連付けられた特権を取得する方法はありますか? はいの場合、どのように?
C では、トークンを作成し、GetTokenInformation() メソッドを使用してトークンに関する情報を取得する必要があることを知っています。
C#に似たようなものはありますか?
私のC#は少しさびていますが、正しく覚えていればこれでうまくいきます
WindowsIdentity windowsIdentity = WindowsIdentity.GetCurrent();