我想访问并行口,请问各位高手用什么函数访问?????

解决方案 »

  1.   

    在9X下用inp(),outp().在NT下要用WINIO动态库.要就留Mail.
      

  2.   

    liqi(sniper) 能不能发给我一份 [email protected]
    多谢
      

  3.   

    [email protected]那outportb()和inportb()是做什么用的?
      

  4.   

    liqi(sniper) 能发一份在 NT或2K 下读端口的例子吗?谢谢!
      

  5.   

    liqi(sniper) 能不能发给我一份 [email protected]
    多谢
      

  6.   

    给一个在win9x下的例子吧
    [email protected]
      

  7.   

    _asm{
    in ***
    out ***
    }
      

  8.   

    if(IsWinNT())
    {
    SetPortVal(0x70,0x1c,1);
    GetPortVal(0x71,&nHigh,1);
    SetPortVal(0x70,0x1d,1);
    GetPortVal(0x71,&nLow,1);
    nHigh &= 0xff;
    nLow &= 0xff;
    }
    else
    {
    _outp(0x70,0x1c);
    nHigh=_inp(0x71);
    _outp(0x70,0x1d);
    nLow=_inp(0x71);
    }
    这个例子行吧,先写0x1c到0x70端口.读出0x71的内容放在nHigh中,然后写0x1d到0x70端口,读出内容放在nLow中。这是一个破COMS密码程序中读CMOS密码数据的过程。
    以上朋友都发了,不过有两个163。COM的退了回来一会我再发。
      

  9.   

    liqi(sniper),也给我一份吧,谢谢!
    [email protected]