ReactOS
0.4.16-dev-424-ge4748fe
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
Node.cpp
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Device Manager
3
* LICENSE: GPL - See COPYING in the top level directory
4
* FILE: dll/win32/devmgr/devmgmt/node.cpp
5
* PURPOSE: Abstract base object for each node in the tree
6
* COPYRIGHT: Copyright 2015 Ged Murphy <gedmurphy@reactos.org>
7
*
8
*/
9
10
#include "precomp.h"
11
#include "
devmgmt.h
"
12
#include "
Node.h
"
13
14
15
/* PUBLIC METHODS *******************************************/
16
17
CNode::CNode
(
_In_
NodeType
Type
,
18
_In_
PSP_CLASSIMAGELIST_DATA
ImageListData
) :
19
m_NodeType(
Type
),
20
m_ImageListData(
ImageListData
),
21
m_DeviceId(
NULL
),
22
m_ClassImage(0)
23
{
24
m_DisplayName
[0] =
UNICODE_NULL
;
25
m_ClassGuid
=
GUID_NULL
;
26
}
27
28
CNode::CNode
(
const
CNode
&
Node
)
29
{
30
m_NodeType
=
Node
.m_NodeType;
31
m_ImageListData
=
Node
.m_ImageListData;
32
m_DeviceId
=
Node
.m_DeviceId;
33
m_ClassImage
=
Node
.m_ClassImage;
34
35
StringCbCopyW
(
m_DisplayName
,
sizeof
(
m_DisplayName
),
Node
.m_DisplayName);
36
CopyMemory
(&
m_ClassGuid
, &
Node
.m_ClassGuid,
sizeof
(
GUID
));
37
}
38
39
CNode::~CNode
()
40
{
41
}
Node.h
NodeType
NodeType
Definition:
Node.h:6
Type
Type
Definition:
Type.h:7
CNode
Definition:
Node.h:13
CNode::m_DeviceId
LPWSTR m_DeviceId
Definition:
Node.h:17
CNode::m_ClassImage
INT m_ClassImage
Definition:
Node.h:20
CNode::m_ImageListData
PSP_CLASSIMAGELIST_DATA m_ImageListData
Definition:
Node.h:16
CNode::m_NodeType
NodeType m_NodeType
Definition:
Node.h:15
CNode::m_ClassGuid
GUID m_ClassGuid
Definition:
Node.h:19
CNode::~CNode
virtual ~CNode()
Definition:
Node.cpp:39
CNode::m_DisplayName
WCHAR m_DisplayName[DISPLAY_NAME_LEN]
Definition:
Node.h:18
CNode::CNode
CNode(_In_ NodeType Type, _In_ PSP_CLASSIMAGELIST_DATA ImageListData)
Definition:
Node.cpp:17
devmgmt.h
NULL
#define NULL
Definition:
types.h:112
ImageListData
SP_CLASSIMAGELIST_DATA ImageListData
Definition:
hdwwiz.c:34
GUID
Definition:
shobjidl.idl:2988
GUID_NULL
#define GUID_NULL
Definition:
ks.h:106
_In_
#define _In_
Definition:
no_sal2.h:158
UNICODE_NULL
#define UNICODE_NULL
StringCbCopyW
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
Definition:
strsafe.h:166
_SP_CLASSIMAGELIST_DATA
Definition:
setupapi.h:1096
node
Definition:
dlist.c:348
CopyMemory
#define CopyMemory
Definition:
winbase.h:1735
dll
win32
devmgr
devmgmt
Node.cpp
Generated on Mon Jan 6 2025 06:06:09 for ReactOS by
1.9.6