Parallel Port access with C#

I'm looking for some help on writing to the parallel port within WinXP Pro using C#. I'm not sure how this is done and I can't find any substantial resources online. All I want to do is be able to write a byte, that's it, nothing else.

If you just want to write some bytes or text to the parallel port, you can create an output file stream that maps to the parallel port:
The drawback is that you need to call unmanaged code from kernel32.dll

I've been to that site and have tried it, but it's not working. I don't know if the DLL the author provides is valid. I don't have a problem writing it in C++, but I'm not familiar with writing in COM. Do you have any suggestions?

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

With com, all you need to do is create an ATL com object. Use the template. Add a method called to the COM interface you create called WriteParallelByte which takes in a byte (as an int). You can then simply include this in a C# project by adding a reference to the COM object (dll). .NET Studio will then automatically create an interop dll that will allow you to instantiate this com object and make the call.

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Introduction
Hi all and welcome to my first article on Experts Exchange.
A while ago, someone asked me if i could do some tutorials on object oriented programming.
I decided to do them on C#. Now you may ask me, why's that?
Well, one of the re…

Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…