Solved

EnumDisplaySettings() and display frequencies

Posted on 1997-06-28
2
323 Views
Last Modified: 2013-12-03
I have an app which allows the user to switch display resolution. On NT I get the display frequencies available for a particular resolution and allow the user to pick which one to use. On one particular machine (DELL 486 with Cyrix video card running NT 4) one of the avilable frequencies returned by EnumDisplaySettings() is a frequency of 1 Hz! Is this the default hardware setting? Should I treat settings below, say 20 as default frequencies?
0
Comment
Question by:dhardiman
2 Comments
 
LVL 3

Expert Comment

by:byang
ID: 1399521
Yes, obviously the video driver is not returning the correct frequency value. Treat anything below 30 as default. The lowest I've seen is 40 or 45.
0
 
LVL 4

Accepted Solution

by:
md041797 earned 50 total points
ID: 1399522
From the DDK:
When you call the EnumDisplaySettings function, the dmDisplayFrequency member may return with the value 0 or 1. These values represent the display hardware's default refresh rate. This default rate is typically set by switches on a display card or computer motherboard, or by a configuration program that does not use Win32 display functions such as ChangeDisplaySettings.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now