Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Parallel Port

ksalamon
Beginner
297 Views

Hello.

I have question:

I want access parallel port. On ParallelPort is connected Printer. I obtained handle to a Port with:

port_handle = CreateFile ("lpt1",IOR(GENERIC_READ, GENERIC_WRITE),NULL, NULL_SECURITY_ATTRIBUTES, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL).

But I'm unable to retrieve the current control settings of the port with the function GetCommState or GetCommProperties. With Serial port, COM1, I dont have that problem. Is it something wrong in my code or is something else?

Thanks.

Kreso.

0 Kudos
0 Replies
Reply