在Delphi中查找可用的LPT(并行)端口和地址 [英] Finding available LPT (parallel) ports and addresses in Delphi

查看:106
本文介绍了在Delphi中查找可用的LPT(并行)端口和地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在并行端口上进行直接I/O,这很好并且对于提高速度是必需的.我想列举一些可用的端口,以便在设置时为用户提供端口选择,而不是通过设备管理器进行繁琐的拖网操作以手动读取地址.有人知道这样做的方法吗? 非常感谢, 布莱恩

I am doing direct I/O on a parallel port which is fine and necessary for speed. I would like to enumerate the available ports to offer the user a choice of ports at setup time rather than a tedious trawl through device manager to read the address manually. Does anyone know a means of doing this please? Many thanks, Brian

推荐答案

根据这篇Microsoft文章,对于Win2K及更高版本,您可以在注册表中的HKLM \ SYSTEM \ CurrentControlSet \ Enum \ LPTENUM中找到并行连接设备的详细信息.

According to this Microsoft article, for Win2K and newer, you can find details of parallel-connected devices in the registry at HKLM\SYSTEM\CurrentControlSet\Enum\LPTENUM.

这篇关于在Delphi中查找可用的LPT(并行)端口和地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆