communication on LPT1 under W9x

I wolud like to connect a potmeter-table and communicate with it under W9x. Fist of all I have to locate the base-port for LPT1
and then send and read datas to it's status,command and control port.
Is there any simple method to communicate with the port like
in DOS (simple in/out assembly instuctions)?
Or should I use Win32 API functions?
If yes, which ones?
Or should I write a client VXD?
If yes, how?
A sample would bee fine.

Thanx.
basszameAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

byangCommented:
You can use in/out instructions just like in DOS. Win95 gives you access to ports.
0
chensuCommented:
You can use Win32 Communication functions.

Communications
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/psdk/winbase/commun_4m7n.htm

The following article talks about serial communications, which is similar to parallel communications.

Serial Communications in Win32
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/techart/msdn_serial.htm

Also see

The PortIO95 Parallel Port Interface
http://dialspace.dial.pipex.com/town/close/ec63/portio95.htm

Parallel Port Central - Programming
http://www.lvr.com/parport.htm#Programming
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.