ReadConsoleA v0.1.0

Source
Reads narrow characters from a console input buffer.

Package: Windows

Microsoft documentation: ReadConsole

Signature

func ReadConsoleA(
    consoleInput: *opaque,
    buffer: *opaque,
    numberOfCharsToRead: uint32,
    numberOfCharsRead: *uint32,
    inputControl: *opaque
) -> bool32;

Parameters

NameDescription
consoleInputConsole input handle.
bufferWritable output buffer.
numberOfCharsToReadMaximum characters to read.
numberOfCharsReadReceives the actual character count.
inputControlInput control data; use null for ANSI input.

Returns

bool32 — nonzero on success or zero on failure. The function requires a console handle; use ReadFile for redirected standard input.

See also