.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의 원래의 질문에서 추출)
확인을. 나는 그것을 스스로 확인했다. 작동하는 것 같습니다. – ahmd0
이것을 적절한 질문/답변 쌍으로 분리하는 것을 고려해야합니다. – slugster
네, 당신은 당신 자신의 질문에 대답 할 수 있습니다. – DWright