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

Re: outportb available?!?!? by Carl

Carl
Thu Jun 02 19:39:57 CDT 2005

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



Re: outportb available?!?!? by Phil

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


Re: outportb available?!?!? by Russ

Russ
Fri Jun 03 16:43:24 CDT 2005

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