ReactOS 0.4.16-dev-197-g92996da
|
Console I/O streams. More...
Go to the source code of this file.
Macros | |
#define | INVALID_CP ((UINT)-1) |
#define | StdIn (&csStdIn ) |
#define | StdOut (&csStdOut) |
#define | StdErr (&csStdErr) |
#define | ConInitStdStreamsAndMode(Mode, CacheCodePage) |
#define | ConInitStdStreams() ConInitStdStreamsAndMode(AnsiText, INVALID_CP) |
#define | ConStdStreamsSetCacheCodePage(InputCodePage, OutputCodePage) |
Typedefs | |
typedef enum _CON_STREAM_MODE | CON_STREAM_MODE |
typedef enum _CON_STREAM_MODE * | PCON_STREAM_MODE |
typedef struct _CON_STREAM | CON_STREAM |
typedef struct _CON_STREAM * | PCON_STREAM |
typedef INT(__stdcall * | CON_WRITE_FUNC) (IN PCON_STREAM Stream, IN PCTCH szStr, IN DWORD len) |
Enumerations | |
enum | _CON_STREAM_MODE { Binary = 0 , AnsiText , WideText , UTF16Text , UTF8Text } |
Functions | |
BOOL | ConStreamInitEx (OUT PCON_STREAM Stream, IN PVOID Handle, IN CON_STREAM_MODE Mode, IN UINT CacheCodePage OPTIONAL, IN CON_WRITE_FUNC WriteFunc OPTIONAL) |
BOOL | ConStreamInit (OUT PCON_STREAM Stream, IN PVOID Handle, IN CON_STREAM_MODE Mode, IN UINT CacheCodePage OPTIONAL) |
BOOL | ConStreamSetMode (IN PCON_STREAM Stream, IN CON_STREAM_MODE Mode, IN UINT CacheCodePage OPTIONAL) |
BOOL | ConStreamSetCacheCodePage (IN PCON_STREAM Stream, IN UINT CacheCodePage) |
HANDLE | ConStreamGetOSHandle (IN PCON_STREAM Stream) |
BOOL | ConStreamSetOSHandle (IN PCON_STREAM Stream, IN HANDLE Handle) |
Variables | |
CON_STREAM | csStdIn |
CON_STREAM | csStdOut |
CON_STREAM | csStdErr |
Console I/O streams.
Definition in file stream.h.
#define ConInitStdStreams | ( | ) | ConInitStdStreamsAndMode(AnsiText, INVALID_CP) |
#define ConStdStreamsSetCacheCodePage | ( | InputCodePage, | |
OutputCodePage | |||
) |
typedef struct _CON_STREAM CON_STREAM |
typedef enum _CON_STREAM_MODE CON_STREAM_MODE |
NOTE: Experimental! Don't use USE_CRT yet because output to console is a bit broken
typedef struct _CON_STREAM * PCON_STREAM |
typedef enum _CON_STREAM_MODE * PCON_STREAM_MODE |
NOTE: Experimental! Don't use USE_CRT yet because output to console is a bit broken
Enumerator | |
---|---|
Binary | |
AnsiText | |
WideText | |
UTF16Text | |
UTF8Text |
Definition at line 43 of file stream.h.
HANDLE ConStreamGetOSHandle | ( | IN PCON_STREAM | Stream | ) |
Definition at line 240 of file stream.c.
Referenced by _tmain(), BreakHandler(), Cleanup(), cmd_beep(), cmd_start(), CommandColor(), ConClearLine(), ConClearScreen(), ConGetScreenInfo(), Execute(), GetHandle(), Initialize(), InputWait(), and PagePrompt().
BOOL ConStreamInit | ( | OUT PCON_STREAM | Stream, |
IN PVOID | Handle, | ||
IN CON_STREAM_MODE | Mode, | ||
IN UINT CacheCodePage | OPTIONAL | ||
) |
Definition at line 185 of file stream.c.
BOOL ConStreamInitEx | ( | OUT PCON_STREAM | Stream, |
IN PVOID | Handle, | ||
IN CON_STREAM_MODE | Mode, | ||
IN UINT CacheCodePage | OPTIONAL, | ||
IN CON_WRITE_FUNC WriteFunc | OPTIONAL | ||
) |
Definition at line 127 of file stream.c.
Referenced by ConStreamInit().
BOOL ConStreamSetCacheCodePage | ( | IN PCON_STREAM | Stream, |
IN UINT | CacheCodePage | ||
) |
Definition at line 215 of file stream.c.
BOOL ConStreamSetMode | ( | IN PCON_STREAM | Stream, |
IN CON_STREAM_MODE | Mode, | ||
IN UINT CacheCodePage | OPTIONAL | ||
) |
Definition at line 195 of file stream.c.
Referenced by Initialize().
BOOL ConStreamSetOSHandle | ( | IN PCON_STREAM | Stream, |
IN HANDLE | Handle | ||
) |
Definition at line 263 of file stream.c.
Referenced by SetHandle(), and wmain().
|
extern |
|
extern |
|
extern |