Tom's Hardware > Forum > Windows XP > Device Driver > Can't change display modes
Word :    Username :           
 

Archived from groups: microsoft.public.development.device.drivers,microsoft.public.win32.programmer.kernel,microsoft.public.windowsxp.device_driver.dev (More info?)

 

I have written a display driver (first time), and I'm trying to change the
screen resolution. I'm using EnumDisplaySettings to get the modes, and
setting a mode via the ChangeDisplaySettingsEx call. The EnumDisplaySettings
return my various defined modes (I see my DrvGetModes function getting
called), but when I call ChangeDisplaySettingsEx it returns a -1
(DISP_CHANGE_FAILED). I do a CDS_TEST to see if I can set the mode first
before I actually set it. But no matter what flag I put on the
ChangeDisplaySettingsEx call I get the DISP_CHANGE_FAILED failure.



What should I be looking for in my display driver, i.e. what callback
function should I have?

Thanks,
Rick

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Device Driver > Can't change display modes
Go to:

There are 912 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them