RegisterClass function Null safety user32

int RegisterClass(
  1. Pointer<WNDCLASS> lpWndClass
)

Registers a window class for subsequent use in calls to the CreateWindow or CreateWindowEx function.

ATOM RegisterClassW(
  const WNDCLASSW *lpWndClass
);

Implementation

int RegisterClass(Pointer<WNDCLASS> lpWndClass) {
  final _RegisterClass = _user32.lookupFunction<
      Uint16 Function(Pointer<WNDCLASS> lpWndClass),
      int Function(Pointer<WNDCLASS> lpWndClass)>('RegisterClassW');
  return _RegisterClass(lpWndClass);
}