Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Port access + XP

This topic is 5558 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! Do you guys know any possible way to access the parallel port (like the OUTP and INP functions) under Windows XP? OUTP and INP doesn''t work! I''ve tested it. Thank you!

Share this post

Link to post
Share on other sites
"Protected Mode", the active word being "Protected".

Forget all DOS style programming techniques in any OS after 9x, interrupt vectors etc have all been rerouted to prevent applications acting like they''re the only thing running on the system!

If you need truly low level access for the purposes of interfacing custom hardware, then write a Kernel mode driver - there are some well documented low level parallel port API calls in the DDK.

To simply send and recieve data, use the Win32 API. CreateFile() lets you open device names like "LPT1" for access. Then functions like SetCommState(), SetCommBreak() etc let you control the non-data items. You can also pass the same handle to the lower level DeviceIO Win32 stuff which sits on the other side of the Kernel mode driver level.

For printing, do your users a favour and use the proper print manager. (Hopefully apps which aren''t capable of printing to a network printer are a thing of the past - I''d hate to encourage any new ones).

Simon O''Connor
Creative Asylum Ltd

Share this post

Link to post
Share on other sites
there are some programs availible that open access to the ports for certain processes or even all of them. porttalk is one of them. writing a driver is pretty steep yo.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!