mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
9c82d16b14
Also: Always use explicit _countof() and sizeof(). Add a missing 'Size' re-init.
41 lines
No EOL
1,019 B
C++
41 lines
No EOL
1,019 B
C++
/*
|
|
* PROJECT: ReactOS Device Manager
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: dll/win32/devmgr/devmgmt/node.cpp
|
|
* PURPOSE: Abstract base object for each node in the tree
|
|
* COPYRIGHT: Copyright 2015 Ged Murphy <gedmurphy@reactos.org>
|
|
*
|
|
*/
|
|
|
|
#include "precomp.h"
|
|
#include "devmgmt.h"
|
|
#include "Node.h"
|
|
|
|
|
|
/* PUBLIC METHODS *******************************************/
|
|
|
|
CNode::CNode(_In_ NodeType Type,
|
|
_In_ PSP_CLASSIMAGELIST_DATA ImageListData) :
|
|
m_NodeType(Type),
|
|
m_ImageListData(ImageListData),
|
|
m_DeviceId(NULL),
|
|
m_ClassImage(0)
|
|
{
|
|
m_DisplayName[0] = UNICODE_NULL;
|
|
m_ClassGuid = GUID_NULL;
|
|
}
|
|
|
|
CNode::CNode(const CNode &Node)
|
|
{
|
|
m_NodeType = Node.m_NodeType;
|
|
m_ImageListData = Node.m_ImageListData;
|
|
m_DeviceId = Node.m_DeviceId;
|
|
m_ClassImage = Node.m_ClassImage;
|
|
|
|
StringCbCopyW(m_DisplayName, sizeof(m_DisplayName), Node.m_DisplayName);
|
|
CopyMemory(&m_ClassGuid, &Node.m_ClassGuid, sizeof(GUID));
|
|
}
|
|
|
|
CNode::~CNode()
|
|
{
|
|
} |