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.Runtime.InteropServices;
8 
9 internal partial class Interop
10 {
11     internal partial class Kernel32
12     {
13         [DllImport(Libraries.Kernel32, SetLastError = true)]
14         [return: MarshalAs(UnmanagedType.Bool)]
GetNamedPipeInfo( SafePipeHandle hNamedPipe, out int lpFlags, IntPtr lpOutBufferSize, IntPtr lpInBufferSize, IntPtr lpMaxInstances )15         internal static extern bool GetNamedPipeInfo(
16             SafePipeHandle hNamedPipe,
17             out int lpFlags,
18             IntPtr lpOutBufferSize,
19             IntPtr lpInBufferSize,
20             IntPtr lpMaxInstances
21         );
22 
23         [DllImport(Libraries.Kernel32, SetLastError = true)]
24         [return: MarshalAs(UnmanagedType.Bool)]
GetNamedPipeInfo( SafePipeHandle hNamedPipe, IntPtr lpFlags, out int lpOutBufferSize, IntPtr lpInBufferSize, IntPtr lpMaxInstances )25         internal static extern bool GetNamedPipeInfo(
26             SafePipeHandle hNamedPipe,
27             IntPtr lpFlags,
28             out int lpOutBufferSize,
29             IntPtr lpInBufferSize,
30             IntPtr lpMaxInstances
31         );
32 
33         [DllImport(Libraries.Kernel32, SetLastError = true)]
34         [return: MarshalAs(UnmanagedType.Bool)]
GetNamedPipeInfo( SafePipeHandle hNamedPipe, IntPtr lpFlags, IntPtr lpOutBufferSize, out int lpInBufferSize, IntPtr lpMaxInstances )35         internal static extern bool GetNamedPipeInfo(
36             SafePipeHandle hNamedPipe,
37             IntPtr lpFlags,
38             IntPtr lpOutBufferSize,
39             out int lpInBufferSize,
40             IntPtr lpMaxInstances
41         );
42     }
43 }
44