ReactOS  0.4.13-dev-982-g9853eab
DeviceNode.h
Go to the documentation of this file.
1 #pragma once
2 #include "Node.h"
3 
5 {
9 };
10 
11 class CDeviceNode : public CNode
12 {
13 private:
17 
21 
22 public:
26  );
27 
28  ~CDeviceNode();
29 
31  _In_ const CDeviceNode &Node
32  );
33 
34  virtual bool SetupNode();
35 
37  int GetOverlayImage() { return m_OverlayImage; }
38 
39  bool HasProblem();
40  bool IsHidden();
41  bool CanDisable();
42  virtual bool IsDisabled();
43  bool IsStarted();
44  bool IsInstalled();
45  bool CanUninstall();
46  virtual bool CanUpdate() { return true; } // unimplemented
47 
48  bool EnableDevice(
49  _In_ bool Enable,
50  _Out_ bool &NeedsReboot
51  );
52 
53  bool UninstallDevice(
54  );
55 
56 private:
57  void Cleanup(
58  );
59 
60  bool SetFlags(
62  _In_ DWORD FlagsEx
63  );
64 
65  bool RemoveFlags(
67  _In_ DWORD FlagsEx
68  );
69 
71  );
72 };
73 
void Cleanup()
Definition: DeviceNode.cpp:400
DEVINST m_DevInst
Definition: DeviceNode.h:15
_In_ PIRP _In_ PDEVICE_OBJECT Device
Definition: fatprocs.h:2020
bool HasProblem()
Definition: DeviceNode.cpp:163
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
HDEVINFO m_hDevInfo
Definition: DeviceNode.h:16
DWORD GetFlags()
Definition: DeviceNode.cpp:415
DEVINST GetDeviceInst()
Definition: DeviceNode.h:36
bool RemoveFlags(_In_ DWORD Flags, _In_ DWORD FlagsEx)
Definition: DeviceNode.cpp:450
#define _In_opt_
Definition: no_sal2.h:213
SP_DEVINFO_DATA m_DevinfoData
Definition: DeviceNode.h:14
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
int GetOverlayImage()
Definition: DeviceNode.h:37
#define _Out_
Definition: no_sal2.h:323
int m_OverlayImage
Definition: DeviceNode.h:20
CDeviceNode(_In_opt_ DEVINST Device, _In_ PSP_CLASSIMAGELIST_DATA ImageListData)
Definition: DeviceNode.cpp:15
Definition: Node.h:12
virtual bool SetupNode()
Definition: DeviceNode.cpp:52
bool CanUninstall()
Definition: DeviceNode.cpp:271
virtual bool CanUpdate()
Definition: DeviceNode.h:46
IconOverlays
Definition: DeviceNode.h:4
virtual bool IsDisabled()
Definition: DeviceNode.cpp:219
unsigned long DWORD
Definition: ntddk_ex.h:95
bool IsStarted()
Definition: DeviceNode.cpp:236
ULONG m_ProblemNumber
Definition: DeviceNode.h:19
bool CanDisable()
Definition: DeviceNode.cpp:202
#define _In_
Definition: no_sal2.h:204
bool IsInstalled()
Definition: DeviceNode.cpp:253
DWORD DEVINST
Definition: cfgmgr32.h:76
bool UninstallDevice()
Definition: DeviceNode.cpp:365
bool SetFlags(_In_ DWORD Flags, _In_ DWORD FlagsEx)
Definition: DeviceNode.cpp:429
unsigned int ULONG
Definition: retypes.h:1
bool EnableDevice(_In_ bool Enable, _Out_ bool &NeedsReboot)
Definition: DeviceNode.cpp:290
ULONG m_Status
Definition: DeviceNode.h:18
SP_CLASSIMAGELIST_DATA ImageListData
Definition: hdwwiz.c:34
Definition: dlist.c:348
bool IsHidden()
Definition: DeviceNode.cpp:180