From a6f08f829e9312091c275ef497f46ff530e8fc88 Mon Sep 17 00:00:00 2001 From: Edward Neal <55035479+edwardneal@users.noreply.github.com> Date: Fri, 16 Jan 2026 22:17:42 +0000 Subject: [PATCH] Revert public visibility of internal interop enums --- .../src/Interop/Windows/Kernel32/IoControlCodeAccess.cs | 2 +- .../src/Interop/Windows/Kernel32/IoControlTransferType.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlCodeAccess.cs b/src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlCodeAccess.cs index bbfce78672..3a32378bba 100644 --- a/src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlCodeAccess.cs +++ b/src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlCodeAccess.cs @@ -13,7 +13,7 @@ namespace Interop.Windows.Kernel32 /// Indicates the type of access that a caller must request when opening the file object that represents the device (see IRP_MJ_CREATE). /// [Flags] - public enum IoControlCodeAccess + internal enum IoControlCodeAccess { /// /// The I/O manager sends the IRP for any caller that has a handle to the file object that represents the target device object. diff --git a/src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlTransferType.cs b/src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlTransferType.cs index 8099827bc8..2573aa8bc0 100644 --- a/src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlTransferType.cs +++ b/src/Microsoft.Data.SqlClient/src/Interop/Windows/Kernel32/IoControlTransferType.cs @@ -10,7 +10,7 @@ namespace Interop.Windows.Kernel32 /// TransferType. /// Indicates how the system will pass data between the caller of DeviceIoControl (or IoBuildDeviceIoControlRequest) and the driver that handles the IRP. /// - public enum IoControlTransferType + internal enum IoControlTransferType { /// /// Specifies the buffered I/O method, which is typically used for transferring small amounts of data per request.