Line 111:
Line 111:
| 30 (ioctlv) || USBV0_IOCTLV_DEVINSERTHOOKID (RegisterInsertionNotifyWithId) || 3 || 1 || OH0
| 30 (ioctlv) || USBV0_IOCTLV_DEVINSERTHOOKID (RegisterInsertionNotifyWithId) || 3 || 1 || OH0
|
|
−
Returns when a device with the requested VID/PID is plugged in, or immediately if the device is already inserted.
+
Returns when a device with the requested VID/PID is plugged in. Similar to ioctlv 27, but with additional parameters.
−
−
It is similar to ioctlv 27, but it has an additional in vector + io vector, possibly used for passing an "ID" (according the official name). {{check}}
* in 0: u16 - VID
* in 0: u16 - VID
* in 1: u16 - PID
* in 1: u16 - PID
−
* in 2: u8 - Unknown (00); some sort of ID?
+
* in 2: u8 - If falsy, return immediately if the device is already plugged in
−
* io 0: u32 - Unknown; some sort of ID?
+
* io 0: u32 - Unknown; some sort of ID? If the ioctlv returned immediately, this is unchanged; otherwise this seems to contain random bytes.
|-
|-