From 67a78d3004e071992fcea2eff518ad57d71b8ab8 Mon Sep 17 00:00:00 2001 From: Ilya Date: Tue, 6 Dec 2022 23:36:47 +0500 Subject: [PATCH] Remove one CreateFileW (#18732) --- .../utils/PlatformInvokes.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/System.Management.Automation/utils/PlatformInvokes.cs b/src/System.Management.Automation/utils/PlatformInvokes.cs index 2901f7d9b6..109eef919d 100644 --- a/src/System.Management.Automation/utils/PlatformInvokes.cs +++ b/src/System.Management.Automation/utils/PlatformInvokes.cs @@ -678,16 +678,6 @@ namespace System.Management.Automation internal static readonly uint RESUME_THREAD_FAILED = System.UInt32.MaxValue; // (DWORD)-1 - [DllImport(PinvokeDllNames.CreateFileDllName, CharSet = CharSet.Unicode, SetLastError = true)] - public static extern System.IntPtr CreateFileW( - [In, MarshalAs(UnmanagedType.LPWStr)] string lpFileName, - UInt32 dwDesiredAccess, - UInt32 dwShareMode, - SECURITY_ATTRIBUTES lpSecurityAttributes, - UInt32 dwCreationDisposition, - UInt32 dwFlagsAndAttributes, - System.IntPtr hTemplateFile); - #endif #endregion