SendInput function Null safety user32

int SendInput(
  1. int cInputs,
  2. Pointer<INPUT> pInputs,
  3. int cbSize
)

Synthesizes keystrokes, mouse motions, and button clicks.

UINT SendInput(
  UINT    cInputs,
  LPINPUT pInputs,
  int     cbSize
);

Implementation

int SendInput(int cInputs, Pointer<INPUT> pInputs, int cbSize) {
  final _SendInput = _user32.lookupFunction<
      Uint32 Function(Uint32 cInputs, Pointer<INPUT> pInputs, Int32 cbSize),
      int Function(
          int cInputs, Pointer<INPUT> pInputs, int cbSize)>('SendInput');
  return _SendInput(cInputs, pInputs, cbSize);
}