WriteConsoleInputA method

int WriteConsoleInputA(
  1. Pointer<Void> hConsoleInput,
  2. Pointer<PINPUT_RECORD> lpBuffer,
  3. int nLength,
  4. Pointer<Uint64> lpNumberOfEventsWritten,
)

Implementation

int WriteConsoleInputA(
  ffi.Pointer<ffi.Void> hConsoleInput,
  ffi.Pointer<PINPUT_RECORD> lpBuffer,
  int nLength,
  ffi.Pointer<ffi.Uint64> lpNumberOfEventsWritten,
) {
  return (_WriteConsoleInputA ??=
      _dylib.lookupFunction<_c_WriteConsoleInputA, _dart_WriteConsoleInputA>(
          'WriteConsoleInputA'))(
    hConsoleInput,
    lpBuffer,
    nLength,
    lpNumberOfEventsWritten,
  );
}