GetSysColorBrush function Null safety user32

int GetSysColorBrush (
  1. int nIndex
)

The GetSysColorBrush function retrieves a handle identifying a logical brush that corresponds to the specified color index.

HBRUSH GetSysColorBrush(
  int nIndex
);

Implementation

int GetSysColorBrush(int nIndex) {
  final _GetSysColorBrush = _user32.lookupFunction<
      IntPtr Function(Int32 nIndex),
      int Function(int nIndex)>('GetSysColorBrush');
  return _GetSysColorBrush(nIndex);
}