INtime SDK Help
ReadRtConsole

Reads characters from the console device according to the current console attributes.

BOOLEAN 
ReadRtConsole(
    LPVOID pBuffer, 
    DWORD dwBufferLength, 
    LPDWORD pdwCount);

Parameters

pBuffer
Buffer where data is to be received from the console.
dwBufferLength
The size of the buffer in bytes.
pdwCount
A pointer to a DWORD variable which receives the count of characters actually read from the console.

Remarks

If the console NOECHO_MODE attribute is set, characters are input without echoing to the console. The default condition is to echo all input characters.

If the RAW_MODE attribute is set, the call will return when the number of characters requested has been input, whatever keystrokes are pressed.

If the RAW_MODE attribute is not set (the default condition), characters are input until the ENTER key is pressed then the requested number of characters is returned to the buffer or all of the characters entered before the ENTER key was pressed is copied to the buffer and the actual number of chacters copied is returned via the pdwCount parameter.

Requirements

Versions Defined in Include Link to
INtime 6.0 intime/rt/include/rtbase.h rt.h rt.lib

See Also