SetDisplayConfig function user32

int SetDisplayConfig(
  1. int numPathArrayElements,
  2. Pointer<DISPLAYCONFIG_PATH_INFO>? pathArray,
  3. int numModeInfoArrayElements,
  4. Pointer<DISPLAYCONFIG_MODE_INFO>? modeInfoArray,
  5. 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,
);