ReadConsoleW method

int ReadConsoleW(
  1. Pointer<Void> hConsoleInput,
  2. Pointer<Void> lpBuffer,
  3. int nNumberOfCharsToRead,
  4. Pointer<Uint64> lpNumberOfCharsRead,
  5. Pointer<PCONSOLE_READCONSOLE_CONTROL> pInputControl,
)

Implementation

int ReadConsoleW(
  ffi.Pointer<ffi.Void> hConsoleInput,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nNumberOfCharsToRead,
  ffi.Pointer<ffi.Uint64> lpNumberOfCharsRead,
  ffi.Pointer<PCONSOLE_READCONSOLE_CONTROL> pInputControl,
) {
  return (_ReadConsoleW ??= _dylib
      .lookupFunction<_c_ReadConsoleW, _dart_ReadConsoleW>('ReadConsoleW'))(
    hConsoleInput,
    lpBuffer,
    nNumberOfCharsToRead,
    lpNumberOfCharsRead,
    pInputControl,
  );
}