[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

EnumDisplaySettings() and display frequencies

Posted on 1997-06-28
2
Medium Priority
?
361 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 200 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

830 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