CreateAcceleratorTable function Null safety user32

int CreateAcceleratorTable(
  1. Pointer<ACCEL> paccel,
  2. int cAccel
)

Creates an accelerator table.

HACCEL CreateAcceleratorTableW(
  LPACCEL paccel,
  int     cAccel
);

Implementation

int CreateAcceleratorTable(Pointer<ACCEL> paccel, int cAccel) {
  final _CreateAcceleratorTable = _user32.lookupFunction<
      IntPtr Function(Pointer<ACCEL> paccel, Int32 cAccel),
      int Function(
          Pointer<ACCEL> paccel, int cAccel)>('CreateAcceleratorTableW');
  return _CreateAcceleratorTable(paccel, cAccel);
}