SetDisplayConfig function user32
int
SetDisplayConfig(
- int numPathArrayElements,
- Pointer<
DISPLAYCONFIG_PATH_INFO> ? pathArray, - int numModeInfoArrayElements,
- Pointer<
DISPLAYCONFIG_MODE_INFO> ? modeInfoArray, - SET_DISPLAY_CONFIG_FLAGS flags,
Modifies the display topology, source, and target modes by exclusively enabling the specified paths in the current session.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-setdisplayconfig.
Implementation
@pragma('vm:prefer-inline')
int SetDisplayConfig(
int numPathArrayElements,
Pointer<DISPLAYCONFIG_PATH_INFO>? pathArray,
int numModeInfoArrayElements,
Pointer<DISPLAYCONFIG_MODE_INFO>? modeInfoArray,
SET_DISPLAY_CONFIG_FLAGS flags,
) => _SetDisplayConfig(
numPathArrayElements,
pathArray ?? nullptr,
numModeInfoArrayElements,
modeInfoArray ?? nullptr,
flags,
);