ReactOS
0.4.16-dev-1109-gd06d9f3
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
misc.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS User Manager Control Panel
4
* FILE: dll/cpl/usrmgr/misc.c
5
* PURPOSE: Miscellaneous functions
6
*
7
* PROGRAMMERS: Eric Kohl
8
*/
9
10
#include "
usrmgr.h
"
11
12
BOOL
13
CheckAccountName
(
HWND
hwndDlg,
14
INT
nIdDlgItem,
15
LPTSTR
lpAccountName
)
16
{
17
TCHAR
szAccountName[256];
18
UINT
uLen;
19
20
if
(
lpAccountName
)
21
uLen =
_tcslen
(
lpAccountName
);
22
else
23
uLen =
GetDlgItemText
(hwndDlg, nIdDlgItem, szAccountName, 256);
24
25
/* Check the account name */
26
if
(uLen > 0 &&
27
_tcspbrk
((
lpAccountName
) ?
lpAccountName
: szAccountName,
TEXT
(
"\"*+,/\\:;<=>?[]|"
)) !=
NULL
)
28
{
29
MessageBox
(hwndDlg,
30
TEXT
(
"The account name you entered is invalid! An account name must not contain the following characters: *+,/:;<=>?[\\]|"
),
31
TEXT
(
"ERROR"
),
32
MB_OK
|
MB_ICONERROR
);
33
return
FALSE
;
34
}
35
36
return
TRUE
;
37
}
NULL
#define NULL
Definition:
types.h:112
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
CheckAccountName
BOOL CheckAccountName(HWND hwndDlg, INT nIdDlgItem, LPTSTR lpAccountName)
Definition:
misc.c:13
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
_tcspbrk
#define _tcspbrk
Definition:
tchar.h:1412
void
Definition:
nsiface.idl:2307
TEXT
#define TEXT(s)
Definition:
k32.h:26
UINT
unsigned int UINT
Definition:
ndis.h:50
INT
int32_t INT
Definition:
typedefs.h:58
usrmgr.h
lpAccountName
_In_ LPCSTR lpAccountName
Definition:
winbase.h:2772
GetDlgItemText
#define GetDlgItemText
Definition:
winuser.h:5805
MB_ICONERROR
#define MB_ICONERROR
Definition:
winuser.h:798
MB_OK
#define MB_OK
Definition:
winuser.h:801
MessageBox
#define MessageBox
Definition:
winuser.h:5842
TCHAR
char TCHAR
Definition:
xmlstorage.h:189
LPTSTR
CHAR * LPTSTR
Definition:
xmlstorage.h:192
_tcslen
#define _tcslen
Definition:
xmlstorage.h:198
dll
cpl
usrmgr
misc.c
Generated on Mon May 12 2025 06:06:27 for ReactOS by
1.9.6