GetObject function Null safety gdi32

int GetObject(
  1. int h,
  2. int c,
  3. Pointer<NativeType> pv
)

The GetObject function retrieves information for the specified graphics object.

int GetObjectW(
  HANDLE h,
  int    c,
  LPVOID pv
);

Implementation

int GetObject(int h, int c, Pointer pv) {
  final _GetObject = _gdi32.lookupFunction<
      Int32 Function(IntPtr h, Int32 c, Pointer pv),
      int Function(int h, int c, Pointer pv)>('GetObjectW');
  return _GetObject(h, c, pv);
}