如果对端口操作的话,为什么不试试inp和outp这两个函数呢?这两个在DOS下很有用的函数在WINDOWS下也能用呀?

解决方案 »

  1.   

    Windows NT 下允许直接操作I/O吗?
    好象不行
      

  2.   

    nt下不支持直接操作.可以尝试使用驱动程序.有相关的程序提供在nt下进行端口
    操作.一般都是采取加载驱动程序的方法.
      

  3.   

    Use DeviceIoControl();But I still assure whether your lpt1 device support the 
    iocontrol function for these address.
    Or, you must write a I/O filter on by NT DDK.
    and implement the accessing the regirster directly there.
    And use DeviceIoControl() then at client side (i.e. GUI)
    I think there are lot of examples in the %NT DDK%\src.Regardsjansen zhu.
      

  4.   

    用DlPortIP控件包(有Delphi,C++Builder, VC接口)。免费
    自带NT设备驱动程序.可以在Windows 9x,NT下读写IO口。
    可到很多关于Delphi的网站下载。(Delphi Super Page, Torry's Delphi Page,...)
      

  5.   

    DlPortIO还专门带了打印口控件可直接操纵25针的任意针。