Phil
Fri Jun 03 11:13:41 CDT 2005
Carl Daniel [VC++ MVP] wrote:
> Russ wrote:
>
>>Hi there,
>>
>>I would like to create a .dll from legacy code. It includes the
>>inportb and outportb commands. Are inportb and outportb available in
>>any version that can create a dll??
>
> They're illegal operations from user-mode code on all NT-based versions of
> Windows. Access to I/O ports is intended to be restricted to kernel-mode
> DLLs. If you look around on the 'net, you can find solutions to allow
> user-mode access to I/O ports.
>
> You might want to check out the resources/articles on www.lvr.com.
In other words... Access to IO ports should be restricted to Windows drivers.
Have you looked for a Windows driver for your hardware?
--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com