Changeset 1317 for trunk/eraser6/Eraser/Program.cs
- Timestamp:
- 11/14/2009 6:27:27 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/eraser6/Eraser/Program.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser/Program.cs
r1304 r1317 34 34 using System.Diagnostics; 35 35 using System.ComponentModel; 36 using System.Security.Principal; 37 using System.Security.AccessControl; 36 38 37 39 using Eraser.Manager; … … 418 420 while (pipeServer.ThreadState != System.Threading.ThreadState.AbortRequested) 419 421 { 422 PipeSecurity security = new PipeSecurity(); 423 security.AddAccessRule(new PipeAccessRule( 424 WindowsIdentity.GetCurrent().User, 425 PipeAccessRights.FullControl, AccessControlType.Allow)); 420 426 using (NamedPipeServerStream server = new NamedPipeServerStream(instanceID, 421 PipeDirection.In, 1, PipeTransmissionMode.Message, PipeOptions.Asynchronous)) 427 PipeDirection.In, 1, PipeTransmissionMode.Message, PipeOptions.Asynchronous, 428 128, 128, security)) 422 429 { 423 430 ServerAsyncInfo async = new ServerAsyncInfo();
Note: See TracChangeset
for help on using the changeset viewer.
