WriteConsoleInputW method

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

Implementation

int WriteConsoleInputW(
  ffi.Pointer<ffi.Void> hConsoleInput,
  ffi.Pointer<PINPUT_RECORD> lpBuffer,
  int nLength,
  ffi.Pointer<ffi.Uint64> lpNumberOfEventsWritten,
) {
  return (_WriteConsoleInputW ??=
      _dylib.lookupFunction<_c_WriteConsoleInputW, _dart_WriteConsoleInputW>(
          'WriteConsoleInputW'))(
    hConsoleInput,
    lpBuffer,
    nLength,
    lpNumberOfEventsWritten,
  );
}