- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
0 Replies
![](/skins/images/7FC17B7B85029576C25F1E43CE255B51/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page