SetSysColors function Null safety user32

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

Sets the colors for the specified display elements. Display elements are the various parts of a window and the display that appear on the system display screen.

BOOL SetSysColors(
  int            cElements,
  const INT      *lpaElements,
  const COLORREF *lpaRgbValues
);

Implementation

int SetSysColors(
    int cElements, Pointer<Int32> lpaElements, Pointer<Int32> lpaRgbValues) {
  final _SetSysColors = _user32.lookupFunction<
      Int32 Function(Int32 cElements, Pointer<Int32> lpaElements,
          Pointer<Int32> lpaRgbValues),
      int Function(int cElements, Pointer<Int32> lpaElements,
          Pointer<Int32> lpaRgbValues)>('SetSysColors');
  return _SetSysColors(cElements, lpaElements, lpaRgbValues);
}