PaintDesktop function Null safety user32

int PaintDesktop(
  1. int hdc

The PaintDesktop function fills the clipping region in the specified device context with the desktop pattern or wallpaper. The function is provided primarily for shell desktops.

BOOL PaintDesktop(
  HDC hdc


int PaintDesktop(int hdc) {
  final _PaintDesktop =
      _user32.lookupFunction<Int32 Function(IntPtr hdc), int Function(int hdc)>(
  return _PaintDesktop(hdc);