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, DISPLAY_NAME_LEN, Node.m_DisplayName); 36 CopyMemory(&m_ClassGuid, &Node.m_ClassGuid, sizeof(GUID)); 37 } 38 39 CNode::~CNode() 40 { 41 }