Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d78579a2
Commit
d78579a2
authored
Jul 05, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Jul 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.devices.usb: Implement IUsbDeviceStatics::GetDeviceSelectorVidPidOnly().
Needed for Lenovo Ready for Assistant.
parent
1450dd79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
usbdevice.c
dlls/windows.devices.usb/usbdevice.c
+16
-2
No files found.
dlls/windows.devices.usb/usbdevice.c
View file @
d78579a2
...
...
@@ -133,8 +133,22 @@ static HRESULT WINAPI usb_device_statics_GetDeviceSelectorGuidOnly( IUsbDeviceSt
static
HRESULT
WINAPI
usb_device_statics_GetDeviceSelectorVidPidOnly
(
IUsbDeviceStatics
*
iface
,
UINT32
vendor
,
UINT32
product
,
HSTRING
*
value
)
{
FIXME
(
"iface %p, vendor %d, product %d, value %p stub!
\n
"
,
iface
,
vendor
,
product
,
value
);
return
E_NOTIMPL
;
static
const
WCHAR
*
format
=
L"System.Devices.InterfaceClassGuid:=
\"
{DEE824EF-729B-4A0E-9C14-B7117D33A817}
\"
"
L" AND System.Devices.InterfaceEnabled:=System.StructuredQueryType.Boolean#True"
L" AND System.DeviceInterface.WinUsb.UsbVendorId:=%d"
L" AND System.DeviceInterface.WinUsb.UsbProductId:=%d"
;
WCHAR
buffer
[
254
+
20
];
HRESULT
hr
;
TRACE
(
"iface %p, vendor %d, product %d, value %p.
\n
"
,
iface
,
vendor
,
product
,
value
);
if
(
!
value
)
return
E_INVALIDARG
;
swprintf
(
buffer
,
ARRAYSIZE
(
buffer
),
format
,
(
INT32
)
vendor
,
(
INT32
)
product
);
hr
=
WindowsCreateString
(
buffer
,
wcslen
(
buffer
),
value
);
TRACE
(
"Returning value = %s
\n
"
,
debugstr_hstring
(
*
value
)
);
return
hr
;
}
static
HRESULT
WINAPI
usb_device_statics_GetDeviceClassSelector
(
IUsbDeviceStatics
*
iface
,
IUsbDeviceClass
*
class
,
HSTRING
*
value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment