Merge pull request #1406 from dorssel/dependabot/nuget/Microsoft.Windows.CsWin32-0.3.298

Bump Microsoft.Windows.CsWin32 from 0.3.287 to 0.3.298
This commit is contained in:
Frans van Dorsselaer authored and GitHub committed 2026-06-20 09:52:55 +02:00
commit 8dfcc28309
6 files changed
+20 -18

No files matched your search

+2
View File
@@ -11,6 +11,8 @@
.json text
.license text
packages.lock.json linguist-generated
*.md text
*.txt text
+1 -1
View File
@@ -10,7 +10,7 @@ SPDX-License-Identifier: GPL-3.0-only
<PackageVersion Include="GitVersion.MsBuild" Version="6.7.0" />
<!-- Usbipd -->
<PackageVersion Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.9" />
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.3.287" />
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.3.298" />
<PackageVersion Include="System.CommandLine" Version="2.0.9" />
<!-- Usbipd.PowerShell -->
<PackageVersion Include="PowerShellStandard.Library" Version="5.1.1" />
+3 -3
View File
@@ -43,9 +43,9 @@
},
"Microsoft.Windows.CsWin32": {
"type": "Direct",
"requested": "[0.3.287, )",
"resolved": "0.3.287",
"contentHash": "4CUt0++zGiWsiD37wKQeFOQSvv1TK3FurvdWvcExAjMctnBWCG0WtNMyYVLNbyGa81eRUzY7milANwJUu3QcsA==",
"requested": "[0.3.298, )",
"resolved": "0.3.298",
"contentHash": "moz/CojV5HSeJYV9pNVE6mWMKnJGvPgdD31EhBLyUJ8Ui06PBrH9oPFK1ljXbJJMM4EzKnkE1a0AtBbH1BHDGA==",
"dependencies": {
"Microsoft.Windows.SDK.Win32Docs": "0.1.42-alpha",
"Microsoft.Windows.SDK.Win32Metadata": "70.0.11-preview",
+5 -5
View File
@@ -274,7 +274,7 @@ sealed class AttachedEndpoint
// VBoxUsb needs this to get the endpoint handles
var setConfig = new UsbSupSetConfig()
{
bConfigurationValue = submit.setup.wValue.Anonymous.LowByte,
bConfigurationValue = submit.setup.wValue.LowByte,
};
if (Logger.IsEnabled(LogLevel.Debug))
{
@@ -290,8 +290,8 @@ sealed class AttachedEndpoint
// VBoxUsb needs this to get the endpoint handles
var selectInterface = new UsbSupSelectInterface()
{
bInterfaceNumber = submit.setup.wIndex.Anonymous.LowByte,
bAlternateSetting = submit.setup.wValue.Anonymous.LowByte,
bInterfaceNumber = submit.setup.wIndex.LowByte,
bAlternateSetting = submit.setup.wValue.LowByte,
};
if (Logger.IsEnabled(LogLevel.Debug))
{
@@ -308,7 +308,7 @@ sealed class AttachedEndpoint
// VBoxUsb needs this to notify the host controller
var clearEndpoint = new UsbSupClearEndpoint()
{
bEndpoint = submit.setup.wIndex.Anonymous.LowByte,
bEndpoint = submit.setup.wIndex.LowByte,
};
if (Logger.IsEnabled(LogLevel.Debug))
{
@@ -358,7 +358,7 @@ sealed class AttachedEndpoint
if ((basic.ep == 0)
&& (submit.setup.bmRequestType.B == (PInvoke.BMREQUEST_TO_DEVICE | (PInvoke.BMREQUEST_DEVICE_TO_HOST << 7)))
&& (submit.setup.bRequest == PInvoke.USB_REQUEST_GET_DESCRIPTOR)
&& (submit.setup.wValue.Anonymous.HiByte == PInvoke.USB_CONFIGURATION_DESCRIPTOR_TYPE))
&& (submit.setup.wValue.HiByte == PInvoke.USB_CONFIGURATION_DESCRIPTOR_TYPE))
{
try
{
+6 -6
View File
@@ -168,16 +168,16 @@ sealed record ExportedDevice(string InstanceId, BusId BusId, Linux.UsbDeviceSpee
ConnectionIndex = device.BusId.Value.Port,
Length = (uint)Unsafe.SizeOf<USB_NODE_CONNECTION_INFORMATION_EX_V2>(),
};
data2.SupportedUsbProtocols.Anonymous.Usb110 = true;
data2.SupportedUsbProtocols.Anonymous.Usb200 = true;
data2.SupportedUsbProtocols.Anonymous.Usb300 = true;
data2.SupportedUsbProtocols.Usb110 = true;
data2.SupportedUsbProtocols.Usb200 = true;
data2.SupportedUsbProtocols.Usb300 = true;
var buf2 = StructToBytes(data2);
_ = await hubFile.IoControlAsync(PInvoke.IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX_V2, buf2, buf2);
BytesToStruct(buf2, out data2);
if (data2.SupportedUsbProtocols.Anonymous.Usb300)
if (data2.SupportedUsbProtocols.Usb300)
{
if (data2.Flags.Anonymous.DeviceIsOperatingAtSuperSpeedPlusOrHigher)
if (data2.Flags.DeviceIsOperatingAtSuperSpeedPlusOrHigher)
{
// NOTE: Linux vhci_hcd supports USB_SPEED_SUPER_PLUS since kernel version 6.12.
// See: https://elixir.bootlin.com/linux/v6.12/source/drivers/usb/usbip/vhci_sysfs.c#L286
@@ -188,7 +188,7 @@ sealed record ExportedDevice(string InstanceId, BusId BusId, Linux.UsbDeviceSpee
// speed = Linux.UsbDeviceSpeed.USB_SPEED_SUPER_PLUS;
speed = Linux.UsbDeviceSpeed.USB_SPEED_SUPER;
}
else if (data2.Flags.Anonymous.DeviceIsOperatingAtSuperSpeedOrHigher)
else if (data2.Flags.DeviceIsOperatingAtSuperSpeedOrHigher)
{
speed = Linux.UsbDeviceSpeed.USB_SPEED_SUPER;
}
+3 -3
View File
@@ -33,9 +33,9 @@
},
"Microsoft.Windows.CsWin32": {
"type": "Direct",
"requested": "[0.3.287, )",
"resolved": "0.3.287",
"contentHash": "4CUt0++zGiWsiD37wKQeFOQSvv1TK3FurvdWvcExAjMctnBWCG0WtNMyYVLNbyGa81eRUzY7milANwJUu3QcsA==",
"requested": "[0.3.298, )",
"resolved": "0.3.298",
"contentHash": "moz/CojV5HSeJYV9pNVE6mWMKnJGvPgdD31EhBLyUJ8Ui06PBrH9oPFK1ljXbJJMM4EzKnkE1a0AtBbH1BHDGA==",
"dependencies": {
"Microsoft.Windows.SDK.Win32Docs": "0.1.42-alpha",
"Microsoft.Windows.SDK.Win32Metadata": "70.0.11-preview",