驱动程序代码如下-----------------
NTSTATUS ezusbDevice::DeviceControl(KIrp I)
{
case IOCTL_Ezusb_RESET:
{
T << "IOCTL_EZUSB_RESET \n";
ULONG_PTR nInfo = NULL;
status = m_Lower.DeviceIoControl(
IOCTL_INTERNAL_USB_RESET_PORT,
NULL,
0,
NULL,
0,
TRUE,
&nInfo
);
break;
}
}
结果 status = -1087849342
请问大家如何复位USB设备才行? |