ReactOS  0.4.15-dev-3165-gdf6fff7
fxrelateddevicelist.hpp
Go to the documentation of this file.
1 //
2 // Copyright (C) Microsoft. All rights reserved.
3 //
4 #ifndef _FXRELATEDDEVICELIST_H_
5 #define _FXRELATEDDEVICELIST_H_
6 
8 public:
10  VOID
11  )
12  {
15  }
16 
17  VOID
19  __in PFX_DRIVER_GLOBALS FxDriverGlobals
20  )
21  {
22  FxSpinLockTransactionedList::LockForEnum(FxDriverGlobals); // __super call
23  }
24 
25  VOID
27  __in PFX_DRIVER_GLOBALS FxDriverGlobals
28  )
29  {
30  FxSpinLockTransactionedList::UnlockFromEnum(FxDriverGlobals); // __super call
31  }
32 
34  NTSTATUS
35  Add(
38  );
39 
40  VOID
41  Remove(
44  );
45 
50  );
51 
52  UCHAR
54  VOID
55  )
56  {
57  m_Retries++;
58  return m_Retries;
59  }
60 
61  VOID
63  VOID
64  )
65  {
66  m_Retries = 0;
67  }
68 
70  PVOID
71  operator new(
72  __in size_t Size,
73  __in PFX_DRIVER_GLOBALS FxDriverGlobals
74  )
75  {
76  return FxPoolAllocate(FxDriverGlobals, NonPagedPool, Size);
77  }
78 
79  VOID
80  operator delete(
82  )
83  {
85  }
86 
87 protected:
88  virtual
90  NTSTATUS
91  ProcessAdd(
93  );
94 
95  virtual
96  BOOLEAN
97  Compare(
100  );
101 
102  virtual
103  VOID
104  EntryRemoved(
106  );
107 
108 public:
110 };
111 
112 #endif // _FXRELATEDDEVICELIST_H_
GLsizei const GLvoid * pointer
Definition: glext.h:5848
#define __in_opt
Definition: dbghelp.h:38
#define TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
VOID Remove(__in PFX_DRIVER_GLOBALS Globals, __in MdDeviceObject Device)
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
VOID UnlockFromEnum(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
virtual BOOLEAN Compare(__in FxTransactionedEntry *Entry, __in PVOID Data)
unsigned char BOOLEAN
_Must_inspect_result_ NTSTATUS Add(__in PFX_DRIVER_GLOBALS Globals, __inout FxRelatedDevice *Entry)
VOID LockForEnum(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
_Must_inspect_result_ FxRelatedDevice * GetNextEntry(__in_opt FxRelatedDevice *Entry)
unsigned char UCHAR
Definition: xmlstorage.h:181
#define __inout
Definition: dbghelp.h:50
#define _Must_inspect_result_
Definition: ms_sal.h:558
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
VOID UnlockFromEnum(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
virtual _Must_inspect_result_ NTSTATUS ProcessAdd(__in FxTransactionedEntry *Entry)
unsigned int ULONG
Definition: retypes.h:1
VOID LockForEnum(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
virtual VOID EntryRemoved(__in FxTransactionedEntry *Entry)
void FxPoolFree(__in_xcount(ptr is at an offset from AllocationStart) PVOID ptr)
Definition: wdfpool.cpp:361
#define __in
Definition: dbghelp.h:35
base of all file and directory entries
Definition: entries.h:82