ReactOS 0.4.15-dev-6049-ge54b32b
DeviceNode.h
Go to the documentation of this file.
1#pragma once
2#include "Node.h"
3
5{
9};
10
11class CDeviceNode : public CNode
12{
13private:
17
21
22public:
26 );
27
29
31 _In_ const CDeviceNode &Node
32 );
33
34 virtual bool SetupNode();
35
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
56private:
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
IconOverlays
Definition: DeviceNode.h:5
@ OverlayInfo
Definition: DeviceNode.h:8
@ OverlayDisabled
Definition: DeviceNode.h:7
@ OverlayProblem
Definition: DeviceNode.h:6
DWORD DEVINST
Definition: cfgmgr32.h:76
int GetOverlayImage()
Definition: DeviceNode.h:37
DEVINST m_DevInst
Definition: DeviceNode.h:15
bool IsInstalled()
Definition: DeviceNode.cpp:253
bool HasProblem()
Definition: DeviceNode.cpp:163
bool RemoveFlags(_In_ DWORD Flags, _In_ DWORD FlagsEx)
Definition: DeviceNode.cpp:450
bool IsHidden()
Definition: DeviceNode.cpp:180
virtual bool CanUpdate()
Definition: DeviceNode.h:46
HDEVINFO m_hDevInfo
Definition: DeviceNode.h:16
bool IsStarted()
Definition: DeviceNode.cpp:236
bool SetFlags(_In_ DWORD Flags, _In_ DWORD FlagsEx)
Definition: DeviceNode.cpp:429
int m_OverlayImage
Definition: DeviceNode.h:20
DEVINST GetDeviceInst()
Definition: DeviceNode.h:36
void Cleanup()
Definition: DeviceNode.cpp:400
ULONG m_Status
Definition: DeviceNode.h:18
virtual bool IsDisabled()
Definition: DeviceNode.cpp:219
bool CanDisable()
Definition: DeviceNode.cpp:202
bool CanUninstall()
Definition: DeviceNode.cpp:271
virtual bool SetupNode()
Definition: DeviceNode.cpp:52
ULONG m_ProblemNumber
Definition: DeviceNode.h:19
bool EnableDevice(_In_ bool Enable, _Out_ bool &NeedsReboot)
Definition: DeviceNode.cpp:290
SP_DEVINFO_DATA m_DevinfoData
Definition: DeviceNode.h:14
bool UninstallDevice()
Definition: DeviceNode.cpp:365
DWORD GetFlags()
Definition: DeviceNode.cpp:415
Definition: Node.h:13
unsigned long DWORD
Definition: ntddk_ex.h:95
SP_CLASSIMAGELIST_DATA ImageListData
Definition: hdwwiz.c:34
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
uint32_t ULONG
Definition: typedefs.h:59
Definition: dlist.c:348
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170