我希望实现在.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
这样的术语。无论是在中文还是其他语言中,这些名称是否有保证能够被准确呼叫?