ReactOS
0.4.16-dev-588-gf07ea94
fxdevicetext.cpp
Go to the documentation of this file.
1
/*++
2
3
Copyright (c) Microsoft Corporation
4
5
Module Name:
6
7
FxDeviceText.cpp
8
9
Abstract:
10
11
This module implements the device text object.
12
13
Author:
14
15
16
17
Environment:
18
19
Both kernel and user mode
20
21
Revision History:
22
23
--*/
24
25
#include "
fxsupportpch.hpp
"
26
27
FxDeviceText::FxDeviceText
(
28
VOID
29
) :
30
m_Description
(
NULL
),
31
m_LocationInformation
(
NULL
),
32
m_LocaleId
(0)
33
{
34
m_Entry
.
Next
=
NULL
;
35
}
36
37
FxDeviceText::~FxDeviceText
()
38
{
39
ASSERT
(
Mx::MxGetCurrentIrql
() ==
PASSIVE_LEVEL
);
40
41
ASSERT
(
m_Entry
.
Next
==
NULL
);
42
43
if
(
m_Description
!=
NULL
) {
44
FxPoolFree
(
m_Description
);
45
m_Description
=
NULL
;
46
}
47
48
if
(
m_LocationInformation
!=
NULL
) {
49
FxPoolFree
(
m_LocationInformation
);
50
m_LocationInformation
=
NULL
;
51
}
52
}
Mx::MxGetCurrentIrql
static __inline KIRQL MxGetCurrentIrql()
Definition:
mxgeneralkm.h:86
NULL
#define NULL
Definition:
types.h:112
PASSIVE_LEVEL
#define PASSIVE_LEVEL
Definition:
env_spec_w32.h:693
m_LocationInformation
pDeviceText m_LocationInformation
Definition:
fxdeviceinitapi.cpp:2521
m_Description
pDeviceText m_Description
Definition:
fxdeviceinitapi.cpp:2508
m_LocaleId
pDeviceText m_LocaleId
Definition:
fxdeviceinitapi.cpp:2506
FxPoolFree
void FxPoolFree(__in_xcount(ptr is at an offset from AllocationStart) PVOID ptr)
Definition:
wdfpool.cpp:361
void
Definition:
nsiface.idl:2307
ASSERT
#define ASSERT(a)
Definition:
mode.c:44
fxsupportpch.hpp
FxDeviceText::m_LocationInformation
PWCHAR m_LocationInformation
Definition:
fxdevicetext.hpp:31
FxDeviceText::FxDeviceText
FxDeviceText(VOID)
Definition:
fxdevicetext.cpp:27
FxDeviceText::~FxDeviceText
~FxDeviceText(VOID)
Definition:
fxdevicetext.cpp:37
FxDeviceText::m_Entry
SINGLE_LIST_ENTRY m_Entry
Definition:
fxdevicetext.hpp:29
FxDeviceText::m_Description
PWCHAR m_Description
Definition:
fxdevicetext.hpp:30
_SINGLE_LIST_ENTRY::Next
struct _SINGLE_LIST_ENTRY * Next
Definition:
ntbasedef.h:637
sdk
lib
drivers
wdf
shared
support
fxdevicetext.cpp
Generated on Thu Jan 23 2025 06:14:17 for ReactOS by
1.9.6