EnumDisplayDevices function貌似可以缓解下这个问题。
http://msdn.microsoft.com/en-us/library/dd162609(v=vs.85).aspx
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. The function fails if iDevNum is greater than the largest device index.
Remarks
To query all display devices in the current session, call this function in a loop, starting with iDevNum set to 0, and incrementing iDevNum until the function fails. To select all display devices in the desktop, use only the display devices that have the DISPLAY_DEVICE_ATTACHED_TO_DESKTOP flag in the

当遇到OpenGL远程崩溃的问题时,EnumDisplayDevices函数可能提供解决方案。该函数用于查询当前会话的所有显示设备,通过循环调用,从iDevNum=0开始,直到函数返回失败。DISPLAY_DEVICE结构中的DISPLAY_DEVICE_ATTACHED_TO_DESKTOP标志标识桌面所连接的显示设备。此外,通过设置lpDevice参数,可以获取显示器适配器和显示器监视器的相关信息。
最低0.47元/天 解锁文章
3820

被折叠的 条评论
为什么被折叠?



