.NET でサービス/クライアント通信用の名前付きパイプを実装しようとしていたところ、パイプのサーバー側を初期化するときに、パイプのセキュリティ記述子を設定する必要があるこのコードに出会いました。彼らはこのようにしました:
PipeSecurity pipeSecurity = new PipeSecurity();
// Allow Everyone read and write access to the pipe.
pipeSecurity.SetAccessRule(new PipeAccessRule("Authenticated Users",
PipeAccessRights.ReadWrite, AccessControlType.Allow));
// Allow the Administrators group full access to the pipe.
pipeSecurity.SetAccessRule(new PipeAccessRule("Administrators",
PipeAccessRights.FullControl, AccessControlType.Allow));
しかし、私はそれを見ていて、SID を文字列または一部として指定することに懸念を抱いていAuthenticated Users
ますAdministrators
。たとえば、中国語や他の言語で呼ばれるという保証は何ですか?