是不是USB设备不能这样Create呢?
再次恳请大虾指导!!!

解决方案 »

  1.   

    Hi,
      I am working on an ATL communication control for Microsoft's POSUSB interface. Although POSUSB is not exactly the same with those normal USB port, my experience might cast a light on your work. 
      The way I open the POSUSB port is:
      CreateFile("\\\\.\\COM3",GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0);
      Here, COM3 is the name for the POSUSB port in the registry. So I suggest you check the registry entry "HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM" for the name of your USB port. Try it, I don't know whether it works or not (grim)Good Luck!
      

  2.   

    Create成功了,但却WriteFile、ReadFile不了,
    什么问题呢?请大虾指导!!!
      

  3.   

    是不是要知道IOCTL呢?(DeviceIoControl())