ReactOS
0.4.16-dev-927-g467dec4
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
msserver.c
Go to the documentation of this file.
1
2
3
#include <windows.h>
4
5
6
int
main
(
int
argc
,
char
*
argv
[])
7
{
8
HANDLE
hMailslot;
9
CHAR
chBuf[512];
10
BOOL
fResult;
11
DWORD
cbRead;
12
LPTSTR
lpszMailslotName =
"\\\\.\\mailslot\\mymailslot"
;
13
14
hMailslot =
CreateMailslot
(lpszMailslotName,
15
512,
16
MAILSLOT_WAIT_FOREVER
,
17
NULL
);
18
for
(;;)
19
{
20
fResult =
ReadFile
(hMailslot,
21
chBuf,
22
512,
23
&cbRead,
24
NULL
);
25
if
(fResult ==
FALSE
)
26
{
27
printf
(
"ReadFile() failed!\n"
);
28
CloseHandle
(hMailslot);
29
return
0;
30
}
31
32
printf
(
"Data read: %s\n"
, chBuf);
33
}
34
35
CloseHandle
(hMailslot);
36
37
return
0;
38
}
39
40
/* EOF */
argc
static int argc
Definition:
ServiceArgs.c:12
NULL
#define NULL
Definition:
types.h:112
FALSE
#define FALSE
Definition:
types.h:117
CloseHandle
#define CloseHandle
Definition:
compat.h:739
ReadFile
#define ReadFile(a, b, c, d, e)
Definition:
compat.h:742
main
int main()
Definition:
test.c:6
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
printf
#define printf
Definition:
freeldr.h:97
void
Definition:
nsiface.idl:2307
argv
#define argv
Definition:
mplay32.c:18
MAILSLOT_WAIT_FOREVER
#define MAILSLOT_WAIT_FOREVER
Definition:
finfo.c:19
CreateMailslot
#define CreateMailslot
Definition:
winbase.h:3786
LPTSTR
CHAR * LPTSTR
Definition:
xmlstorage.h:192
CHAR
char CHAR
Definition:
xmlstorage.h:175
modules
rostests
tests
mstest
msserver.c
Generated on Sun Mar 30 2025 06:09:05 for ReactOS by
1.9.6