ReactOS
0.4.16-dev-226-g79f2289
Node.h
Go to the documentation of this file.
1
#pragma once
2
3
#define DISPLAY_NAME_LEN 256
4
5
enum
NodeType
6
{
7
RootNode
,
8
ClassNode
,
9
DeviceNode
10
};
11
12
class
CNode
13
{
14
protected
:
15
NodeType
m_NodeType
;
16
PSP_CLASSIMAGELIST_DATA
m_ImageListData
;
17
LPWSTR
m_DeviceId
;
18
WCHAR
m_DisplayName
[
DISPLAY_NAME_LEN
];
19
GUID
m_ClassGuid
;
20
INT
m_ClassImage
;
21
22
public
:
23
CNode
(
24
_In_
NodeType
Type
,
25
_In_
PSP_CLASSIMAGELIST_DATA
ImageListData
26
);
27
28
CNode
(
29
_In_
const
CNode
&
Node
30
);
31
32
virtual
~CNode
();
33
34
virtual
bool
SetupNode
() = 0;
35
36
NodeType
GetNodeType
() {
return
m_NodeType
; }
37
LPGUID
GetClassGuid
() {
return
&
m_ClassGuid
; }
38
LPWSTR
GetDisplayName
() {
return
m_DisplayName
; }
39
INT
GetClassImage
() {
return
m_ClassImage
; }
40
LPWSTR
GetDeviceId
() {
return
m_DeviceId
; }
41
bool
HasProperties
() {
return
(
m_DeviceId
!=
NULL
); }
42
};
43
DISPLAY_NAME_LEN
#define DISPLAY_NAME_LEN
Definition:
Node.h:3
NodeType
NodeType
Definition:
Node.h:6
ClassNode
@ ClassNode
Definition:
Node.h:8
RootNode
@ RootNode
Definition:
Node.h:7
DeviceNode
@ DeviceNode
Definition:
Node.h:9
Type
Type
Definition:
Type.h:7
CNode
Definition:
Node.h:13
CNode::GetClassGuid
LPGUID GetClassGuid()
Definition:
Node.h:37
CNode::SetupNode
virtual bool SetupNode()=0
CNode::GetClassImage
INT GetClassImage()
Definition:
Node.h:39
CNode::m_DeviceId
LPWSTR m_DeviceId
Definition:
Node.h:17
CNode::HasProperties
bool HasProperties()
Definition:
Node.h:41
CNode::CNode
CNode(_In_ const CNode &Node)
CNode::GetDeviceId
LPWSTR GetDeviceId()
Definition:
Node.h:40
CNode::GetDisplayName
LPWSTR GetDisplayName()
Definition:
Node.h:38
CNode::m_ClassImage
INT m_ClassImage
Definition:
Node.h:20
CNode::m_ImageListData
PSP_CLASSIMAGELIST_DATA m_ImageListData
Definition:
Node.h:16
CNode::m_NodeType
NodeType m_NodeType
Definition:
Node.h:15
CNode::GetNodeType
NodeType GetNodeType()
Definition:
Node.h:36
CNode::m_ClassGuid
GUID m_ClassGuid
Definition:
Node.h:19
CNode::~CNode
virtual ~CNode()
Definition:
Node.cpp:39
CNode::m_DisplayName
WCHAR m_DisplayName[DISPLAY_NAME_LEN]
Definition:
Node.h:18
NULL
#define NULL
Definition:
types.h:112
ImageListData
SP_CLASSIMAGELIST_DATA ImageListData
Definition:
hdwwiz.c:34
GUID
Definition:
shobjidl.idl:2988
_In_
#define _In_
Definition:
no_sal2.h:158
_SP_CLASSIMAGELIST_DATA
Definition:
setupapi.h:1095
INT
int32_t INT
Definition:
typedefs.h:58
node
Definition:
dlist.c:348
WCHAR
__wchar_t WCHAR
Definition:
xmlstorage.h:180
LPWSTR
WCHAR * LPWSTR
Definition:
xmlstorage.h:184
dll
win32
devmgr
devmgmt
Node.h
Generated on Sun Nov 3 2024 06:06:26 for ReactOS by
1.9.6