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 static partial class Interop
10 {
11     internal static partial class Advapi32
12     {
13         [DllImport(Interop.Libraries.Advapi32, SetLastError = true)]
14         [return: MarshalAs(UnmanagedType.Bool)]
ImpersonateNamedPipeClient(SafePipeHandle hNamedPipe)15         internal static extern bool ImpersonateNamedPipeClient(SafePipeHandle hNamedPipe);
16     }
17 }
18