Ah, thanks! How did I miss that function?
Anyways, that's all I wanted to know.
Another related question: Is the order of display modes always the same on all systems or is it hardware dependant? On my system, for example, the display modes are ordered like this:
640x480 32-Bit 85 FPS
640x480 32-Bit 75 FPS
640x480 32-Bit 60 FPS
In my game I want the search function to automatically select the display mode with the highest refresh rate, if the other requirements are met. If the display modes have the same order on any system, I can just select the first display mode that meets the requirements. However, if they don't, I have to search for the display mode with the highest FPS manually.