ReactOS
0.4.16-dev-433-g6363f78
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
close.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: Serial port driver
4
* FILE: drivers/dd/serial/close.c
5
* PURPOSE: Serial IRP_MJ_CLOSE operations
6
*
7
* PROGRAMMERS: Herv� Poussineau (hpoussin@reactos.org)
8
*/
9
10
#include "
serial.h
"
11
12
#include <debug.h>
13
14
NTSTATUS
NTAPI
15
SerialClose
(
16
IN
PDEVICE_OBJECT
DeviceObject
,
17
IN
PIRP
Irp
)
18
{
19
PSERIAL_DEVICE_EXTENSION
pDeviceExtension;
20
21
TRACE_
(SERIAL,
"IRP_MJ_CLOSE\n"
);
22
pDeviceExtension = (
PSERIAL_DEVICE_EXTENSION
)
DeviceObject
->DeviceExtension;
23
pDeviceExtension->
IsOpened
=
FALSE
;
24
25
Irp
->IoStatus.Information = 0;
26
Irp
->IoStatus.Status =
STATUS_SUCCESS
;
27
IoCompleteRequest
(
Irp
,
IO_NO_INCREMENT
);
28
return
STATUS_SUCCESS
;
29
}
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
Irp
_In_ PIRP Irp
Definition:
csq.h:116
FALSE
#define FALSE
Definition:
types.h:117
TRACE_
#define TRACE_(x)
Definition:
compat.h:76
SerialClose
DRIVER_DISPATCH SerialClose
Definition:
serial.h:213
PSERIAL_DEVICE_EXTENSION
struct _SERIAL_DEVICE_EXTENSION * PSERIAL_DEVICE_EXTENSION
IoCompleteRequest
#define IoCompleteRequest
Definition:
irp.c:1240
serial.h
STATUS_SUCCESS
#define STATUS_SUCCESS
Definition:
shellext.h:65
_DEVICE_OBJECT
Definition:
env_spec_w32.h:413
_IRP
Definition:
Bus_PDO_EvalMethod.c:105
_SERIAL_DEVICE_EXTENSION
Definition:
serial.h:49
_SERIAL_DEVICE_EXTENSION::IsOpened
BOOLEAN IsOpened
Definition:
serial.h:73
NTAPI
#define NTAPI
Definition:
typedefs.h:36
IN
#define IN
Definition:
typedefs.h:39
DeviceObject
_In_ PDEVICE_OBJECT DeviceObject
Definition:
wdfdevice.h:2055
IO_NO_INCREMENT
#define IO_NO_INCREMENT
Definition:
iotypes.h:598
drivers
serial
serial
close.c
Generated on Tue Jan 7 2025 06:13:00 for ReactOS by
1.9.6