2 #include "DeviceNode.h"
16 CAtlList
<CClassNode
*> m_ClassNodeList
;
17 CAtlList
<CDeviceNode
*> m_DeviceNodeList
;
18 SP_CLASSIMAGELIST_DATA m_ImageListData
;
21 HWND m_hPropertyDialog
;
25 HTREEITEM m_hTreeRoot
;
26 DEVINST m_RootDevInst
;
51 LRESULT
OnContextMenu(
57 _In_
bool ScanForChanges
,
61 VOID
DisplayPropertySheet();
64 VOID
SetHiddenDevices(_In_
bool ShowHidden
)
66 m_ShowHidden
= ShowHidden
;
69 ViewType
GetCurrentView() { return m_ViewType
; }
72 _In_ LPTV_ITEMW TvItem
74 //bool SelDeviceIsHidden();
76 _In_ LPTV_ITEMW TvItem
79 _In_ LPTV_ITEMW TvItem
81 bool SelDeviceIsStarted();
82 bool SelDeviceIsInstalled();
87 bool RefreshDeviceList();
89 static unsigned int __stdcall
RefreshThread(
93 bool ListDevicesByConnection(
95 bool ListDevicesByType(
99 _In_ ULONG ClassIndex
,
100 _Out_ LPGUID ClassGuid
,
101 _Out_ HDEVINFO
*hDevInfo
104 bool RecurseChildDevices(
105 _In_ DEVINST ParentDevice
,
106 _In_ HTREEITEM hParentTreeItem
110 _In_ DEVINST ParentDevInst
,
111 _Out_ PDEVINST DevInst
114 bool GetSiblingDevice(
115 _In_ DEVINST PrevDevice
,
116 _Out_ PDEVINST DevInst
119 HTREEITEM
InsertIntoTreeView(
120 _In_ HTREEITEM hParent
,
124 VOID
RecurseDeviceView(
125 _In_ HTREEITEM hParentItem
128 VOID
EmptyDeviceView(
132 _In_ LPTV_ITEMW TvItem
134 CNode
* GetSelectedNode();
136 CClassNode
* GetClassNode(
137 _In_ LPGUID ClassGuid
139 CDeviceNode
* GetDeviceNode(