ChangeDisplaySettings function user32
Changes the settings of the default display device to the specified graphics mode.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-changedisplaysettingsw.
Implementation
@pragma('vm:prefer-inline')
DISP_CHANGE ChangeDisplaySettings(
Pointer<DEVMODE>? lpDevMode,
CDS_TYPE dwFlags,
) => DISP_CHANGE(_ChangeDisplaySettings(lpDevMode ?? nullptr, dwFlags));