1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 
5 using Microsoft.Win32.SafeHandles;
6 using System;
7 using System.IO;
8 using System.Runtime.InteropServices;
9 
10 internal partial class Interop
11 {
12     internal partial class Kernel32
13     {
14         [DllImport(Libraries.Kernel32, EntryPoint = "CreateFileW", CharSet = CharSet.Unicode, SetLastError = true, BestFitMapping = false)]
CreateNamedPipeClient( string lpFileName, int dwDesiredAccess, System.IO.FileShare dwShareMode, ref SECURITY_ATTRIBUTES secAttrs, FileMode dwCreationDisposition, int dwFlagsAndAttributes, IntPtr hTemplateFile)15         internal static extern SafePipeHandle CreateNamedPipeClient(
16             string lpFileName,
17             int dwDesiredAccess,
18             System.IO.FileShare dwShareMode,
19             ref SECURITY_ATTRIBUTES secAttrs,
20             FileMode dwCreationDisposition,
21             int dwFlagsAndAttributes,
22             IntPtr hTemplateFile);
23     }
24 }
25