ReadConsoleA method

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

Implementation

int ReadConsoleA(
  ffi.Pointer<ffi.Void> hConsoleInput,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nNumberOfCharsToRead,
  ffi.Pointer<ffi.Uint64> lpNumberOfCharsRead,
  ffi.Pointer<PCONSOLE_READCONSOLE_CONTROL> pInputControl,
) {
  return (_ReadConsoleA ??= _dylib
      .lookupFunction<_c_ReadConsoleA, _dart_ReadConsoleA>('ReadConsoleA'))(
    hConsoleInput,
    lpBuffer,
    nNumberOfCharsToRead,
    lpNumberOfCharsRead,
    pInputControl,
  );
}