主要程序如下:
bResult = DeviceIoControl(DeviceHandle,
IOCTL_EZUSB_BULK_READ,
&btc,
sizeof(BULK_TRANSFER_CONTROL),
(PVOID)szBuf,
sizeof(szBuf),
&nBytes,
NULL);
if(bResult && (pPipe[i].EndpointAddress >> 7))
m_strEdit += "\r\n\r\n*************Read Data Sunccessfully!*************\r\n";
file.WriteString(szBuf); |