下面是在圈圈书上, 看到的端口1和端口2的控制代码IOCTL的定义, 但没找到端口0的
#define EP1_READ \
CTL_CODE(FILE_DEVICE_COMPUTER00USB, 0x800, METHOD_BUFFERED, FILE_READ_ACCESS)
#define EP1_WRITE \
CTL_CODE(FILE_DEVICE_COMPUTER00USB, 0x801, METHOD_BUFFERED, FILE_WRITE_ACCESS)
#define EP2_READ \
CTL_CODE(FILE_DEVICE_COMPUTER00USB, 0x802, METHOD_BUFFERED, FILE_READ_ACCESS)
#define EP2_WRITE \
CTL_CODE(FILE_DEVICE_COMPUTER00USB, 0x803, METHOD_BUFFERED, FILE_WRITE_ACCESS)
|