代码我没有,但是你会访问端口吗?读CMOS不就是一个端口操作吗?

解决方案 »

  1.   

    to trivita:
       我知道好象是70,71端口,但好象vc里没有outp,inp之类的函数
      

  2.   

    有呀,_outp,_inp,
    需要#include一个文件,在msdn能找到。
    不能用在nt下。
      

  3.   

    MSDN:
    Console and Port I/O
    In Windows NT and Windows 95, the output from these functions is always directed to the console and cannot be redirected.
      

  4.   

    win32下面允许直接操作端口吗?
      

  5.   

    unsigned char byte[64];
    for(int i=0;i<64;_outp(0x70,i),i++) byte[i]=_inp(0x71);
    其他自己做
      

  6.   

    各位,有一点问题,cmos时间是否就是GetCurrentTime()得到的时间
      

  7.   

    请大家参考delphi一贴:
    http://www.csdn.net/expert/Topic/242/242736.shtm
    如果是这样,取cmos时间就无意义了