For Programmers: Free Programming Magazines  


Home > Archive > VC Language > June 2005 > outportb available?!?!?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author outportb available?!?!?
Russ

2005-06-03, 3:59 am

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??

Thanks very much,

Russ
Carl Daniel [VC++ MVP]

2005-06-03, 3:59 am

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.

-cd


Phil Frisbie, Jr.

2005-06-03, 4:02 pm

Carl Daniel [VC++ MVP] wrote:

> Russ wrote:
>
>
> 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

Russ

2005-06-03, 8:59 pm

Thanks very much for your help. I found a Device driver for Windows XP which
allows the inportb/outportb functions (gives the user higher priviledges to
the I/O ports) at http://www.beyondlogic.org/porttalk/porttalk.htm

Russ

"Carl Daniel [VC++ MVP]" wrote:

> Russ wrote:
>
> 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.
>
> -cd
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com