ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
stream_private.h
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Console Utilities Library
3
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4
* PURPOSE: Provides basic abstraction wrappers around CRT streams or
5
* Win32 console API I/O functions, to deal with i18n + Unicode
6
* related problems.
7
* COPYRIGHT: Copyright 2017-2018 ReactOS Team
8
* Copyright 2017-2018 Hermes Belusca-Maito
9
*/
10
11
#ifndef __STREAM_PRIVATE_H__
12
#define __STREAM_PRIVATE_H__
13
14
#pragma once
15
16
/*
17
* Console I/O streams
18
*/
19
20
#if 0
21
// Shadow type, implementation-specific
22
typedef
struct
_CON_STREAM
CON_STREAM
, *
PCON_STREAM
;
23
#endif
24
25
typedef
struct
_CON_STREAM
26
{
27
CON_WRITE_FUNC
WriteFunc
;
28
29
#ifdef USE_CRT
30
FILE
* fStream;
31
#else
32
BOOL
IsInitialized
;
33
CRITICAL_SECTION
Lock
;
34
35
HANDLE
hHandle
;
36
37
/*
38
* TRUE if 'hHandle' refers to a console, in which case I/O UTF-16
39
* is directly used. If 'hHandle' refers to a file or a pipe, the
40
* 'Mode' flag is used.
41
*/
42
BOOL
IsConsole
;
43
44
/*
45
* The 'Mode' flag is used to know the translation mode
46
* when 'hHandle' refers to a file or a pipe.
47
*/
48
CON_STREAM_MODE
Mode
;
49
UINT
CodePage
;
// Used to convert UTF-16 text to some ANSI code page.
50
#endif
/* defined(USE_CRT) */
51
}
CON_STREAM
, *
PCON_STREAM
;
52
53
#endif
/* __STREAM_PRIVATE_H__ */
54
55
/* EOF */
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
void
Definition:
nsiface.idl:2307
UINT
unsigned int UINT
Definition:
ndis.h:50
CON_WRITE_FUNC
INT(__stdcall * CON_WRITE_FUNC)(IN PCON_STREAM Stream, IN PCTCH szStr, IN DWORD len)
Definition:
outstream.h:47
CON_STREAM_MODE
enum _CON_STREAM_MODE CON_STREAM_MODE
CON_STREAM
struct _CON_STREAM CON_STREAM
PCON_STREAM
struct _CON_STREAM * PCON_STREAM
_CON_STREAM
Definition:
stream_private.h:26
_CON_STREAM::Mode
CON_STREAM_MODE Mode
Definition:
stream_private.h:48
_CON_STREAM::CodePage
UINT CodePage
Definition:
stream_private.h:49
_CON_STREAM::hHandle
HANDLE hHandle
Definition:
stream_private.h:35
_CON_STREAM::IsConsole
BOOL IsConsole
Definition:
stream_private.h:42
_CON_STREAM::WriteFunc
CON_WRITE_FUNC WriteFunc
Definition:
stream_private.h:27
_CON_STREAM::Lock
CRITICAL_SECTION Lock
Definition:
stream_private.h:33
_CON_STREAM::IsInitialized
BOOL IsInitialized
Definition:
stream_private.h:32
_CRITICAL_SECTION
Definition:
winbase.h:918
_iobuf
Definition:
mbstring.h:19
sdk
lib
conutils
stream_private.h
Generated on Tue Nov 26 2024 06:13:30 for ReactOS by
1.9.6