SetDisplayConfig function user32

int SetDisplayConfig(
  1. int numPathArrayElements,
  2. Pointer<DISPLAYCONFIG_PATH_INFO> pathArray,
  3. int numModeInfoArrayElements,
  4. Pointer<DISPLAYCONFIG_MODE_INFO> modeInfoArray,
  5. int flags,
)

The SetDisplayConfig function modifies the display topology, source, and target modes by exclusively enabling the specified paths in the current session.

LONG SetDisplayConfig(
  [in]           UINT32                  numPathArrayElements,
  [in, optional] DISPLAYCONFIG_PATH_INFO *pathArray,
  [in]           UINT32                  numModeInfoArrayElements,
  [in, optional] DISPLAYCONFIG_MODE_INFO *modeInfoArray,
  [in]           UINT32                  flags
);

Implementation

int SetDisplayConfig(
        int numPathArrayElements,
        Pointer<DISPLAYCONFIG_PATH_INFO> pathArray,
        int numModeInfoArrayElements,
        Pointer<DISPLAYCONFIG_MODE_INFO> modeInfoArray,
        int flags) =>
    _SetDisplayConfig(numPathArrayElements, pathArray, numModeInfoArrayElements,
        modeInfoArray, flags);