EnumDisplayDevices()找不到辅助监视器 [英] EnumDisplayDevices() can't find the secondary monitor

查看:147
本文介绍了EnumDisplayDevices()找不到辅助监视器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


您好,我有一个FireGL V3100适配器,该适配器的DVI头连接了一个通用的pnp监视器,而VGA头则连接了一个LCD.使我感到困惑的是,EnumDisplayDevices()正确检测到适配器和主监视器,但拒绝识别LCD.有人可以请问一下吗?非常感谢!

Qinkan

解决方案

您检查第一个参数是否为NULL?

 

请记住," lpDevice [in]"是 指向设备名称的指针.如果为NULL,则函数返回信息 基于 iDevNum 的计算机上的显示适配器. ; D


Hello,

I have a FireGL V3100 adapter which has a generic pnp monitor connected to its DVI head and an lcd hooked to its VGA head. What puzzles me is that EnumDisplayDevices() correctly detected the adapter and the primary monitor but refused to recognise the lcd. Could someone shed light on this please? Thanks a lot!

Qinkan

解决方案

You check if the first parameter isn't NULL?

 

Remember that the "lpDevice [in]" is a pointer to the device name. If NULL, function returns information for the display adapter(s) on the machine, based on iDevNum. ;D


这篇关于EnumDisplayDevices()找不到辅助监视器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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