.NETのサービス/クライアント通信用の名前付きパイプを実装していて、this codeを見つけました。パイプのサーバー側を初期化するときに、パイプのセキュリティ記述子を設定する必要がありました。彼らはそれをこのようでした:.NETでのセキュリティIDのローカライゼーション
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));
をしかし、私はそれを見ている、と私は、文字列、またはAuthenticated Users
とAdministrators
部品としてSIDを指定心配です。中国語などの言葉で保証される保証は何ですか? (OPの元の質問から抽出された)
OKを。私はそれを自分で確認した。それは動作するようです。 – ahmd0
これを適切な質問/回答のペアに分割することを検討する必要があります。 – slugster
はい、あなた自身の質問に答えることができます。 – DWright