ReactOS  0.4.13-dev-1089-g05f0b08
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 
19  m_NodeType(Type),
20  m_ImageListData(ImageListData),
21  m_DeviceId(NULL),
22  m_ClassImage(0)
23 {
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 
36  CopyMemory(&m_ClassGuid, &Node.m_ClassGuid, sizeof(GUID));
37 }
38 
40 {
41 }
CNode(_In_ NodeType Type, _In_ PSP_CLASSIMAGELIST_DATA ImageListData)
Definition: Node.cpp:17
Type
Definition: Type.h:6
virtual ~CNode()
Definition: Node.cpp:39
LPWSTR m_DeviceId
Definition: Node.h:17
INT m_ClassImage
Definition: Node.h:20
#define UNICODE_NULL
smooth NULL
Definition: ftsmooth.c:416
NodeType
Definition: Node.h:5
Definition: Node.h:12
NodeType m_NodeType
Definition: Node.h:15
#define CopyMemory
Definition: winbase.h:1633
GUID m_ClassGuid
Definition: Node.h:19
PSP_CLASSIMAGELIST_DATA m_ImageListData
Definition: Node.h:16
#define GUID_NULL
Definition: ks.h:106
#define _In_
Definition: no_sal2.h:204
WCHAR m_DisplayName[DISPLAY_NAME_LEN]
Definition: Node.h:18
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:166
SP_CLASSIMAGELIST_DATA ImageListData
Definition: hdwwiz.c:34
Definition: dlist.c:348
#define DISPLAY_NAME_LEN
Definition: hotplug.cpp:16