获取显示器的制造,制造,型号和序列号 [英] Getting manufacture, make, model and serial number of monitors
问题描述
我参与的一个FOSS应用程序使用PyQt来获取有关系统附加屏幕的信息。特别是我们使用QScreen类。不幸的是,Windows实现没有返回我想要的所有信息。
A FOSS application that I contribute to uses PyQt to get information about the screens attached to a system. In particular we use the QScreen class. Unfortunately the Windows implementation does not return all the information I want.
内部QScreen使用 windows GetMonitorInfo api。 ( https://code.woboq.org/qt5/qtbase /src/plugins/platforms/windows/qwindowsscreen.cpp.html#82 )
Internally QScreen uses the windows GetMonitorInfo api. (https://code.woboq.org/qt5/qtbase/src/plugins/platforms/windows/qwindowsscreen.cpp.html#82)
理想情况下,我想获得序列号,品牌和型号以及友好名称并能够将其链接到从GetMonitor检索到的信息。也许是通过
szDevice 或 rcWork cordinates
Ideally, I would like to get the serial number, make and model and a friendly name and be able to link it to the information retrieved from GetMonitor. Perhaps by the szDevice or the rcWork cordinates
我需要在Python中实现该解决方案,因此如果我可以使用现有的依赖项,那将非常有用。 ( win32com, win32ui, pywintypes)
I will need to implement the solution in Python, so it would be very helpful if I can use existing dependencies. (win32com, win32ui, pywintypes)
推荐答案
您需要从注册表中检索EDID解码它。
You'll need to retrieve the EDID from the registry and decode it.
例如参见: http://www.nirsoft。 net / utils / dump_edid.html
See for example: http://www.nirsoft.net/utils/dump_edid.html
- pa
这篇关于获取显示器的制造,制造,型号和序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!