一个机器如果连上一台扫描仪后
如何检测该型号扫描仪是否连上?
进而如何读到扫描仪的某种特征序列号?
用twain接口能实现吗?还是有什么API函数呢?
做过这方面的大侠请指点一下。
小弟十分紧急!

解决方案 »

  1.   

    help me!
    如何用API读取扫描仪信息???
    谢谢大家啊,老师逼我ing!
      

  2.   

    • Load the Source Manager and Get the DSM_Entry (State 1 to 2)
    • Open the Source Manager (State 2 to 3)
    • Select the Source (during State 3)
    • Open the Source (State 3 to 4)
    • Negotiate Capabilities with the Source (during State 4)
    • Request the Acquisition of Data from the Source (State 4 to 5)
    • Recognize that the Data Transfer is Ready (State 5 to 6)
    • Start and Perform the Transfer (State 6 to 7)
    • Conclude the Transfer (State 7 to 6 to 5)
    • Disconnect the TWAIN Session (State 5 to 1 in sequence)
      

  3.   

    具体请看www.twain.org. twain spec
      

  4.   

    在select source这一步会弹出机器上安装的所有扫描仪(安装了驱动就会弹出,没机器也可以)