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
82 bool EnableSelectedDevice(
84 _Out_
bool &NeedsReboot
87 bool SelDeviceIsStarted();
88 bool SelDeviceIsInstalled();
93 bool RefreshDeviceList();
95 static unsigned int __stdcall
RefreshThread(
99 bool ListDevicesByConnection(
101 bool ListDevicesByType(
105 _In_ ULONG ClassIndex
,
106 _Out_ LPGUID ClassGuid
,
107 _Out_ HDEVINFO
*hDevInfo
110 bool RecurseChildDevices(
111 _In_ DEVINST ParentDevice
,
112 _In_ HTREEITEM hParentTreeItem
116 _In_ DEVINST ParentDevInst
,
117 _Out_ PDEVINST DevInst
120 bool GetSiblingDevice(
121 _In_ DEVINST PrevDevice
,
122 _Out_ PDEVINST DevInst
125 HTREEITEM
InsertIntoTreeView(
126 _In_ HTREEITEM hParent
,
130 VOID
RecurseDeviceView(
131 _In_ HTREEITEM hParentItem
134 VOID
EmptyDeviceView(
138 _In_ LPTV_ITEMW TvItem
140 CNode
* GetSelectedNode();
142 CClassNode
* GetClassNode(
143 _In_ LPGUID ClassGuid
145 CDeviceNode
* GetDeviceNode(