ReactOS
0.4.16-dev-1056-gbe87e00
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
m
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
_
a
b
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
unicode.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS system libraries
4
* FILE: dll/win32/advapi32/misc/unicode.c
5
* PURPOSE: Unicode helper. Needed because RtlIsTextUnicode returns a
6
* BOOLEAN (byte) while IsTextUnicode returns a BOOL (long).
7
* The high bytes of the return value should be correctly set,
8
* hence a direct redirection cannot be done.
9
*/
10
11
#include <
advapi32.h
>
12
13
/**************************************************************************
14
* IsTextUnicode (ADVAPI32.@)
15
*
16
* Attempt to guess whether a text buffer is Unicode.
17
*
18
* PARAMS
19
* lpv [I] Text buffer to test
20
* iSize [I] Length of lpv
21
* lpiResult [O] Destination for test results
22
*
23
* RETURNS
24
* TRUE if the buffer is likely Unicode, FALSE otherwise.
25
*/
26
BOOL
WINAPI
27
IsTextUnicode
(
IN
CONST
VOID
* lpv,
28
IN
INT
iSize,
29
IN
OUT
LPINT
lpiResult
OPTIONAL
)
30
{
31
return
(
RtlIsTextUnicode
(lpv, iSize, lpiResult) !=
FALSE
);
32
}
33
34
/* EOF */
advapi32.h
FALSE
#define FALSE
Definition:
types.h:117
IsTextUnicode
BOOL WINAPI IsTextUnicode(IN CONST VOID *lpv, IN INT iSize, IN OUT LPINT lpiResult OPTIONAL)
Definition:
unicode.c:27
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
void
Definition:
nsiface.idl:2307
RtlIsTextUnicode
NTSYSAPI BOOLEAN NTAPI RtlIsTextUnicode(_In_ CONST VOID *Buffer, _In_ INT Size, _Inout_opt_ INT *Flags)
CONST
#define CONST
Definition:
pedump.c:81
OPTIONAL
PULONG MinorVersion OPTIONAL
Definition:
CrossNt.h:68
INT
int32_t INT
Definition:
typedefs.h:58
IN
#define IN
Definition:
typedefs.h:39
OUT
#define OUT
Definition:
typedefs.h:40
LPINT
int * LPINT
Definition:
windef.h:178
WINAPI
#define WINAPI
Definition:
msvc.h:6
dll
win32
advapi32
misc
unicode.c
Generated on Tue Apr 29 2025 06:16:49 for ReactOS by
1.9.6