How to switch to DRR using windows api?

zzz-R 5 Reputation points
2023-04-03T08:44:46.8866667+00:00

Windows 11 has added DRR(Dynamic refresh rate) features, what if I want to switch to DRR through the windows api?

Screenshot 2023-04-03 014247

Windows development Windows API - Win32
{count} vote

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2023-04-04T01:50:38.95+00:00

    Hello, Welcome to Microsoft Q&A!

    As the thread said, you can ChangeDisplaySettings with specifying the dmDisplayFrequency field of DEVMODE before checking the DRR(Dynamic refresh rate) value.

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.