| Author |
outportb available?!?!?
|
|
|
| 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
| |
|
| 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
>
>
>
|
|
|
|