UnregisterClass function Null safety user32

int UnregisterClass(
  1. Pointer<Utf16> lpClassName,
  2. int hInstance

Unregisters a window class, freeing the memory required for the class.

BOOL UnregisterClassW(
  LPCWSTR   lpClassName,
  HINSTANCE hInstance


int UnregisterClass(Pointer<Utf16> lpClassName, int hInstance) {
  final _UnregisterClass = _user32.lookupFunction<
      Int32 Function(Pointer<Utf16> lpClassName, IntPtr hInstance),
      int Function(
          Pointer<Utf16> lpClassName, int hInstance)>('UnregisterClassW');
  return _UnregisterClass(lpClassName, hInstance);