https://bugs.winehq.org/show_bug.cgi?id=46711
--- Comment #22 from Gerold Gerold.Ruhland@gmail.com --- No success with 4.4
0009:trace:hid:HidD_GetManufacturerString (0x70 0x4b267c 512) 0022:trace:ntoskrnl:dispatch_ioctl ioctl b01ba device 0x5f490 file 0x60f20 in_size 512 out_size 512 0022:trace:ntoskrnl:IoBuildDeviceIoControlRequest b01ba, 0x5f490, 0x12540, 0, 0x61420, 512, 0, (nil), (nil) 0022:trace:ntoskrnl:IoAllocateIrp 2, 0 0022:trace:ntoskrnl:ExAllocatePoolWithTag 784 pool 0 -> 0x61630 0022:trace:ntoskrnl:IoInitializeIrp 0x61630, 784, 2 0022:trace:ntoskrnl:IoAllocateMdl (0x61420, 512, 0, 0, 0x61630) 0022:trace:hid:HID_Device_ioctl device 0x5f490 ioctl(b01ba) 0022:trace:ntoskrnl:IoBuildDeviceIoControlRequest b0013, 0x5f490, 0x1, 4, 0x43f550, 254, 1, (nil), 0x43f4f0 0022:trace:ntoskrnl:IoAllocateIrp 2, 0 0022:trace:ntoskrnl:ExAllocatePoolWithTag 784 pool 0 -> 0x12570 0022:trace:ntoskrnl:IoInitializeIrp 0x12570, 784, 2 0022:trace:plugplay:hid_internal_dispatch (0x5e110, 0x12570) 0022:trace:plugplay:hid_internal_dispatch IOCTL_HID_GET_STRING[00000001] 0022:warn:plugplay:get_sysattr_string Could not get manufacturer from device 0022:trace:ntoskrnl:IoCompleteRequest 0x12570 0 0022:trace:ntoskrnl:IoCompleteRequest calling 0x7fdf8cc18320( 0x5f490, 0x12570, 0x80 ) 0022:trace:ntoskrnl:IoCompleteRequest CompletionRoutine returned c0000016 0022:trace:ntoskrnl:IoCompleteRequest 0x12570 0 0022:trace:ntoskrnl:IoFreeIrp 0x12570 0022:trace:ntoskrnl:ExFreePoolWithTag 0x12570 0022:trace:hid:handle_minidriver_string got string L"" from minidriver 0022:trace:ntoskrnl:IoCompleteRequest 0x61630 0 0022:trace:ntoskrnl:IoCompleteRequest calling 0x7fdf8e260ec0( 0x5f490, 0x61630, 0x64 ) 0022:trace:ntoskrnl:IoCompleteRequest CompletionRoutine returned 0 0022:trace:ntoskrnl:IoFreeIrp 0x61630 0022:trace:ntoskrnl:IoFreeMdl 0x122a0 0022:trace:ntoskrnl:ExFreePoolWithTag 0x61630
Same for HidD_GetProductString and HidD_GetSerialNumberString.
Tested again with my program written in Delphi and hclient.exe from Microsoft DDK. Source available here, but I guess you know it: https://github.com/Microsoft/Windows-driver-samples/tree/master/hid/hclient
It's also what you recommand for tests here: https://wiki.winehq.org/Hid
----------------------------------- ... Tools to use with device testing hid_test.exe: Wine tests written around direct HID access, in the wine tree dlls/hid/tests. hclient.exe: This is distributed by Microsoft in the DDK (and various free download sites if you are so inclined). This tool will enumerate devices and allow for all various levels of control and exploration. ... -----------------------------------
BTW: where can I find "hid_test.exe"?