diff --git a/common/vboxusb/assets/amd64/VBoxUSB.cat.license b/common/vboxusb/assets/amd64/VBoxUSB.cat.license new file mode 100644 index 000000000..d91c23ad1 --- /dev/null +++ b/common/vboxusb/assets/amd64/VBoxUSB.cat.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Microsoft Corporation + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/amd64/VBoxUSB.inf.license b/common/vboxusb/assets/amd64/VBoxUSB.inf.license new file mode 100644 index 000000000..4fb909335 --- /dev/null +++ b/common/vboxusb/assets/amd64/VBoxUSB.inf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2011-2025 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/amd64/VBoxUSB.sys.license b/common/vboxusb/assets/amd64/VBoxUSB.sys.license new file mode 100644 index 000000000..22ff2d8b6 --- /dev/null +++ b/common/vboxusb/assets/amd64/VBoxUSB.sys.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2009-2026 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/amd64/VBoxUSBMon.sys.license b/common/vboxusb/assets/amd64/VBoxUSBMon.sys.license new file mode 100644 index 000000000..22ff2d8b6 --- /dev/null +++ b/common/vboxusb/assets/amd64/VBoxUSBMon.sys.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2009-2026 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/arm64/VBoxUSB.cat.license b/common/vboxusb/assets/arm64/VBoxUSB.cat.license new file mode 100644 index 000000000..d91c23ad1 --- /dev/null +++ b/common/vboxusb/assets/arm64/VBoxUSB.cat.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Microsoft Corporation + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/arm64/VBoxUSB.inf.license b/common/vboxusb/assets/arm64/VBoxUSB.inf.license new file mode 100644 index 000000000..4fb909335 --- /dev/null +++ b/common/vboxusb/assets/arm64/VBoxUSB.inf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2011-2025 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/arm64/VBoxUSB.sys.license b/common/vboxusb/assets/arm64/VBoxUSB.sys.license new file mode 100644 index 000000000..22ff2d8b6 --- /dev/null +++ b/common/vboxusb/assets/arm64/VBoxUSB.sys.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2009-2026 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/assets/arm64/VBoxUSBMon.sys.license b/common/vboxusb/assets/arm64/VBoxUSBMon.sys.license new file mode 100644 index 000000000..22ff2d8b6 --- /dev/null +++ b/common/vboxusb/assets/arm64/VBoxUSBMon.sys.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2009-2026 Oracle and/or its affiliates + +SPDX-License-Identifier: GPL-3.0-only diff --git a/common/vboxusb/device_windows.go b/common/vboxusb/device_windows.go index d69091203..5aa9746d4 100644 --- a/common/vboxusb/device_windows.go +++ b/common/vboxusb/device_windows.go @@ -19,9 +19,9 @@ import ( // concurrent use on the same Device — the session layer serializes // per-endpoint via per-endpoint goroutines. type Device struct { - handle windows.Handle - event windows.Handle - closing sync.Once + handle windows.Handle + event windows.Handle + closing sync.Once closeErr error } diff --git a/common/vboxusb/vboxusb.go b/common/vboxusb/vboxusb.go index 77c319934..a373bd0eb 100644 --- a/common/vboxusb/vboxusb.go +++ b/common/vboxusb/vboxusb.go @@ -93,13 +93,13 @@ type GUID struct { // Method = METHOD_BUFFERED (0). const ( // Per-device VBoxUSB.sys (\\?\). - IOCTLSendURB uint32 = 0x0022_181C // function 0x607 + IOCTLSendURB uint32 = 0x0022_181C // function 0x607 IOCTLUSBSelectInterface uint32 = 0x0022_1824 // function 0x609 - IOCTLUSBSetConfig uint32 = 0x0022_1828 // function 0x60a - IOCTLUSBClaimDevice uint32 = 0x0022_182C // function 0x60b - IOCTLUSBClearEndpoint uint32 = 0x0022_1838 // function 0x60e - IOCTLGetVersion uint32 = 0x0022_183C // function 0x60f - IOCTLUSBAbortEndpoint uint32 = 0x0022_1840 // function 0x610 + IOCTLUSBSetConfig uint32 = 0x0022_1828 // function 0x60a + IOCTLUSBClaimDevice uint32 = 0x0022_182C // function 0x60b + IOCTLUSBClearEndpoint uint32 = 0x0022_1838 // function 0x60e + IOCTLGetVersion uint32 = 0x0022_183C // function 0x60f + IOCTLUSBAbortEndpoint uint32 = 0x0022_1840 // function 0x610 // VBoxUSBMon (\\.\VBoxUSBMon). Note GET_VERSION shares the numeric // code with VBoxUSB's USB_ABORT_ENDPOINT — different handles.