From: John F. <jo...@ti...> - 2001-08-24 16:35:13
|
You need a "kernel mode" device driver to access IO ports in Win32. (The DOS box in Win95 emulates apparent real mode port access for you.) I've never figured out how to write these, and I believe it takes the Microsoft Device Development Kit, and the driver model changed between 95 and 98. However, there are a few freeware/shareware generic port device drivers available for download. One that I played with a few years ago, with I think at least some success, is TVicPort. Do a http://www.google.com search for tvicport.zip and tvichw32.zip. Also try port95nt.exe. There may be others floating around written since I last looked around for this. John Strugala Wladyslaw wrote: > > Is it possible direct read/write from/to PC's input/output ports ? > > With e.g old borland's c/c++ 3.1 there were inport and outport > (8 and 16 bit versions) functions very easy for use. > > In DOS or win 3.1 programs (even running on win 95/98) > there was no problem... > I know in win 32 systems memory and in/out ports are protected. > |