ReactOS 0.4.15-dev-8109-gd7be748
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
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
40{
41}
NodeType
Definition: Node.h:6
Type
Definition: Type.h:7
Definition: Node.h:13
LPWSTR m_DeviceId
Definition: Node.h:17
INT m_ClassImage
Definition: Node.h:20
PSP_CLASSIMAGELIST_DATA m_ImageListData
Definition: Node.h:16
NodeType m_NodeType
Definition: Node.h:15
GUID m_ClassGuid
Definition: Node.h:19
virtual ~CNode()
Definition: Node.cpp:39
WCHAR m_DisplayName[DISPLAY_NAME_LEN]
Definition: Node.h:18
CNode(_In_ NodeType Type, _In_ PSP_CLASSIMAGELIST_DATA ImageListData)
Definition: Node.cpp:17
#define NULL
Definition: types.h:112
SP_CLASSIMAGELIST_DATA ImageListData
Definition: hdwwiz.c:34
#define GUID_NULL
Definition: ks.h:106
#define _In_
Definition: ms_sal.h:308
#define UNICODE_NULL
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:166
Definition: dlist.c:348
#define CopyMemory
Definition: winbase.h:1710