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.