additional naming fixes,
authorAnton Firszov <Anton.Firszov@microsoft.com>
Fri, 31 Jan 2020 15:22:55 +0000 (16:22 +0100)
committerAnton Firszov <Anton.Firszov@microsoft.com>
Fri, 31 Jan 2020 15:22:55 +0000 (16:22 +0100)
default System.Net.Sockets.sln configurations to Windows_NT again

src/libraries/Common/src/Interop/Windows/Kernel32/Interop.HandleInformation.cs
src/libraries/System.Net.Sockets/System.Net.Sockets.sln
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Windows.cs

index baee76e..1b5358d 100644 (file)
@@ -14,8 +14,8 @@ internal static partial class Interop
         internal enum HandleFlags: uint
         {
             None = 0,
-            Inherit = 1,
-            ProtectFromClose = 2
+            HANDLE_FLAG_INHERIT = 1,
+            HANDLE_FLAG_PROTECT_FROM_CLOSE = 2
         }
 
         [DllImport(Libraries.Kernel32, SetLastError = true)]
index 85d259a..f526d46 100644 (file)
@@ -30,8 +30,8 @@ Global
                {8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Debug|Any CPU.Build.0 = netcoreapp5.0-Windows_NT-Debug|Any CPU
                {8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Release|Any CPU.ActiveCfg = netcoreapp5.0-Windows_NT-Release|Any CPU
                {8CBA022C-635F-4C8D-9D29-CD8AAC68C8E6}.Release|Any CPU.Build.0 = netcoreapp5.0-Windows_NT-Release|Any CPU
-               {43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Debug|Any CPU.ActiveCfg = netcoreapp5.0-Unix-Debug|Any CPU
-               {43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Debug|Any CPU.Build.0 = netcoreapp5.0-Unix-Debug|Any CPU
+               {43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Debug|Any CPU.ActiveCfg = netcoreapp5.0-Windows_NT-Debug|Any CPU
+               {43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Debug|Any CPU.Build.0 = netcoreapp5.0-Windows_NT-Debug|Any CPU
                {43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Release|Any CPU.ActiveCfg = netcoreapp5.0-Windows_NT-Release|Any CPU
                {43311AFB-D7C4-4E5A-B1DE-855407F90D1B}.Release|Any CPU.Build.0 = netcoreapp5.0-Windows_NT-Release|Any CPU
                {834E3534-6A11-4A8D-923F-35C1E71CCEC3}.Debug|Any CPU.ActiveCfg = netcoreapp5.0-Debug|Any CPU
index b0fa2cf..2ef5667 100644 (file)
@@ -97,7 +97,7 @@ namespace System.Net.Sockets
                     return error;
                 }
 
-                if (!Interop.Kernel32.SetHandleInformation(socket, Interop.Kernel32.HandleFlags.Inherit, 0))
+                if (!Interop.Kernel32.SetHandleInformation(socket, Interop.Kernel32.HandleFlags.HANDLE_FLAG_INHERIT, 0))
                 {
                     // Returning SocketError for consistency, since the call site can deal with conversion, and
                     // the most common SetHandleInformation error (AccessDenied) is included in SocketError anyways: