Remove unused pinvokes in RemoteSessionNamedPipe (#18583)

This commit is contained in:
Ilya
2022-11-22 09:12:41 -08:00
committed by GitHub
parent 83d3b0e12b
commit 041f4332e5
@@ -274,19 +274,6 @@ namespace System.Management.Automation.Remoting
uint dwCreationDisposition,
uint dwFlagsAndAttributes,
IntPtr hTemplateFile);
[DllImport(PinvokeDllNames.WaitNamedPipeDllName, SetLastError = true, CharSet = CharSet.Unicode)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool WaitNamedPipe(string lpNamedPipeName, uint nTimeOut);
[DllImport(PinvokeDllNames.ImpersonateNamedPipeClientDllName, SetLastError = true, CharSet = CharSet.Unicode)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool ImpersonateNamedPipeClient(IntPtr hNamedPipe);
[DllImport(PinvokeDllNames.RevertToSelfDllName, SetLastError = true, CharSet = CharSet.Unicode)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool RevertToSelf();
#endregion
}