Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I wrote a C program a while ago which uses the macros inp, outp, inpw, & outpw from conio.h. This program sent commands to the ports to get hard drive info from an IDE hard drive. Now I need it to run in Windows. It works fine in DOS mode, but none of the commands work when run from a DOS prompt within Windows '95. Does anyone happen to know why? It is either not sending the commands to the ports (ie, outp isn't working) or it's not reading the values from the ports (ie, inp isn't working). Any one know any reason these functions wouldn't do the same thing they do from within Windows they do in DOS mode?