回答編集履歴
1
カーネルモードのドライバの場合の情報追記
test
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
[https://github.com/Microsoft/Windows-driver-samples/tree/master/usb/usbview](https://github.com/Microsoft/Windows-driver-samples/tree/master/usb/usbview)
|
6
6
|
|
7
7
|
|
8
|
+
|
9
|
+
```ここに言語を入力
|
8
10
|
|
9
11
|
display.c(2003): case USB_CONFIGURATION_DESCRIPTOR_TYPE:
|
10
12
|
|
@@ -21,3 +23,31 @@
|
|
21
23
|
enum.c(2622): if (stringDesc->bDescriptorType != USB_STRING_DESCRIPTOR_TYPE)
|
22
24
|
|
23
25
|
xmlhelper.cpp(1798): case USB_CONFIGURATION_DESCRIPTOR_TYPE:
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
---
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
カーネルモードのドライバであれば、WDK サンプルソース usbsamp の device.c あたりは参考になりませんかね?
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
[https://github.com/Microsoft/Windows-driver-samples/blob/master/usb/usbsamp/sys/device.c](https://github.com/Microsoft/Windows-driver-samples/blob/master/usb/usbsamp/sys/device.c)
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
```ここに言語を入力
|
46
|
+
|
47
|
+
device.c(487): WdfUsbTargetDeviceGetDeviceDescriptor(pDeviceContext->WdfUsbTargetDevice,
|
48
|
+
|
49
|
+
device.c(540): status = WdfUsbTargetDeviceRetrieveConfigDescriptor(pDeviceContext->WdfUsbTargetDevice,
|
50
|
+
|
51
|
+
device.c(566): status = WdfUsbTargetDeviceRetrieveConfigDescriptor(pDeviceContext->WdfUsbTargetDevice,
|
52
|
+
|
53
|
+
```
|