SetTextColor function Null safety gdi32

int SetTextColor(
  1. int hdc,
  2. int color

The SetTextColor function sets the text color for the specified device context to the specified color.

COLORREF SetTextColor(
  HDC      hdc,
  COLORREF color


int SetTextColor(int hdc, int color) {
  final _SetTextColor = _gdi32.lookupFunction<
      Uint32 Function(IntPtr hdc, Uint32 color),
      int Function(int hdc, int color)>('SetTextColor');
  return _SetTextColor(hdc, color);