SetSysColors function user32

Win32Result<bool> SetSysColors(
  1. int cElements,
  2. Pointer<Int32> lpaElements,
  3. Pointer<Uint32> lpaRgbValues
)

Sets the colors for the specified display elements.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-setsyscolors.

Implementation

Win32Result<bool> SetSysColors(
  int cElements,
  Pointer<Int32> lpaElements,
  Pointer<Uint32> lpaRgbValues,
) {
  final result_ = SetSysColors_Wrapper(cElements, lpaElements, lpaRgbValues);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}