SelectObject function Null safety gdi32

int SelectObject (
  1. int hdc,
  2. int h
)

The SelectObject function selects an object into the specified device context (DC). The new object replaces the previous object of the same type.

HGDIOBJ SelectObject(
  HDC     hdc,
  HGDIOBJ h
);

Implementation

int SelectObject(int hdc, int h) {
  final _SelectObject = _gdi32.lookupFunction<
      IntPtr Function(IntPtr hdc, IntPtr h),
      int Function(int hdc, int h)>('SelectObject');
  return _SelectObject(hdc, h);
}