mirror of
https://github.com/reactos/reactos.git
synced 2024-07-15 17:06:29 +00:00
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
![]() |
/*
|
||
|
* PROJECT: ReactOS Console Utilities Library
|
||
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||
|
* PURPOSE: Provides basic abstraction wrappers around CRT streams or
|
||
|
* Win32 console API I/O functions, to deal with i18n + Unicode
|
||
|
* related problems.
|
||
|
* COPYRIGHT: Copyright 2017-2018 ReactOS Team
|
||
|
* Copyright 2017-2018 Hermes Belusca-Maito
|
||
|
*/
|
||
|
|
||
|
#ifndef __INSTREAM_H__
|
||
|
#define __INSTREAM_H__
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
/*
|
||
|
* Enable this define if you want to only use CRT functions to output
|
||
|
* UNICODE stream to the console, as in the way explained by
|
||
|
* http://archives.miloush.net/michkap/archive/2008/03/18/8306597.html
|
||
|
*/
|
||
|
/** NOTE: Experimental! Don't use USE_CRT yet because output to console is a bit broken **/
|
||
|
// #define USE_CRT
|
||
|
|
||
|
#ifndef _UNICODE
|
||
|
#error The ConUtils library at the moment only supports compilation with _UNICODE defined!
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
// Shadow type, implementation-specific
|
||
|
typedef struct _CON_STREAM CON_STREAM, *PCON_STREAM;
|
||
|
|
||
|
/*
|
||
|
* Console I/O utility API -- Input
|
||
|
*/
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* __INSTREAM_H__ */
|
||
|
|
||
|
/* EOF */
|