各位大哥、大姐救命呀!!win2k下CMOS里面的数据怎么读出来,这方面的程序我没接触过,要看什么参考书?这100分送完还会加分,直到小弟倾家荡产为止!!!
老板给很短的时间让我做出来,不管提建议的,还是给出源码链接,还是建议参考书的,我都有分相送,小弟向你们鞠躬了

解决方案 »

  1.   

    In DOS , you can can simply call the _inp/_outp functions to access CMOS, in windows I recommend WinIO to you. http://www.internals.com/utilities/winio.zipWhy should I use the WinIo library if I can simply call the _inp/_outp functions? 
    Port access under Windows 9x is possible as long as you refrain from accessing trapped ports. Several VxDs hook I/O ports to virtualize hardware and will block any attempt to modify these ports from a Windows application. If you wish to control a piece of hardware which is mapped to free addresses such as 300h, you can use the inp/outp functions with no fear. However, any attempt to access system ports (such as those reserved for the DMA chip, HD controller, etc.) will be to no avail. To control such ports from your application, you'll need to use the WinIo library which executes in ring 0 and bypasses Windows port trapping mechanism. Under Windows NT/2000, user mode applications are completely prohibited from accessing I/O ports. Any attempt to access an I/O port from a ring 3 application is terminated with a protection fault. Thus, the only way to overcome this limitation is by using a kernel-mode device driver, such as the one supplied with the WinIo library.find out port number of CMOS, then you can read its data via WinIO library.
      

  2.   

    如果你没有办法进入ring0的话
    就不能直接访问端口
    建议你去当一个库,
    我记得是winio
    可以直接操作端口
      

  3.   

    Masterz 能帮你的
    http://expert.csdn.net/Expert/topic/909/909286.xml?temp=.7075464
      

  4.   

    http://www.csdn.net/cnshare/soft/9/9280.shtm
      

  5.   

    http://www.csdn.net/dev/Tools/2000%20Year%20Problem/
    你可以在google上搜一搜CMOS或者在CSDN上搜