ReactOS
0.4.16-dev-91-g764881a
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:
ms_sal.h:308
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:1095
node
Definition:
dlist.c:348
CopyMemory
#define CopyMemory
Definition:
winbase.h:1710
dll
win32
devmgr
devmgmt
Node.cpp
Generated on Fri Oct 4 2024 06:03:42 for ReactOS by
1.9.6