2015-06-16 21:13:28 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Device Manager
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
2015-10-15 17:21:37 +00:00
|
|
|
* FILE: dll/win32/devmgr/devmgmt/node.cpp
|
2015-07-07 11:05:25 +00:00
|
|
|
* PURPOSE: Abstract base object for each node in the tree
|
2015-06-16 21:13:28 +00:00
|
|
|
* COPYRIGHT: Copyright 2015 Ged Murphy <gedmurphy@reactos.org>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-10-15 17:21:37 +00:00
|
|
|
#include "precomp.h"
|
2015-06-16 21:13:28 +00:00
|
|
|
#include "devmgmt.h"
|
|
|
|
#include "Node.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* PUBLIC METHODS *******************************************/
|
|
|
|
|
2015-07-03 06:56:58 +00:00
|
|
|
CNode::CNode(_In_ NodeType Type,
|
|
|
|
_In_ PSP_CLASSIMAGELIST_DATA ImageListData) :
|
|
|
|
m_NodeType(Type),
|
2015-06-16 21:13:28 +00:00
|
|
|
m_ImageListData(ImageListData),
|
|
|
|
m_DeviceId(NULL),
|
2015-06-17 21:26:42 +00:00
|
|
|
m_ClassImage(0)
|
2015-06-16 21:13:28 +00:00
|
|
|
{
|
|
|
|
m_DisplayName[0] = UNICODE_NULL;
|
2015-07-04 21:12:06 +00:00
|
|
|
m_ClassGuid = GUID_NULL;
|
2015-06-16 21:13:28 +00:00
|
|
|
}
|
|
|
|
|
2015-10-23 12:45:41 +00:00
|
|
|
CNode::CNode(const CNode &Node)
|
2015-06-16 21:13:28 +00:00
|
|
|
{
|
2015-10-23 12:45:41 +00:00
|
|
|
m_NodeType = Node.m_NodeType;
|
|
|
|
m_ImageListData = Node.m_ImageListData;
|
|
|
|
m_DeviceId = Node.m_DeviceId;
|
|
|
|
m_ClassImage = Node.m_ClassImage;
|
|
|
|
|
2019-11-20 21:13:48 +00:00
|
|
|
StringCbCopyW(m_DisplayName, sizeof(m_DisplayName), Node.m_DisplayName);
|
2015-10-23 12:45:41 +00:00
|
|
|
CopyMemory(&m_ClassGuid, &Node.m_ClassGuid, sizeof(GUID));
|
2015-06-16 21:13:28 +00:00
|
|
|
}
|
2015-10-23 12:45:41 +00:00
|
|
|
|
|
|
|
CNode::~CNode()
|
|
|
|
{
|
|
|
|
}
|