ReactOS 0.4.15-dev-7942-gd23573b
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
8public:
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
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
87protected:
88 virtual
93 );
94
95 virtual
97 Compare(
100 );
101
102 virtual
103 VOID
106 );
107
108public:
110};
111
112#endif // _FXRELATEDDEVICELIST_H_
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
VOID UnlockFromEnum(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
_Must_inspect_result_ NTSTATUS Add(__in PFX_DRIVER_GLOBALS Globals, __inout FxRelatedDevice *Entry)
VOID LockForEnum(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
virtual BOOLEAN Compare(__in FxTransactionedEntry *Entry, __in PVOID Data)
_Must_inspect_result_ FxRelatedDevice * GetNextEntry(__in_opt FxRelatedDevice *Entry)
virtual _Must_inspect_result_ NTSTATUS ProcessAdd(__in FxTransactionedEntry *Entry)
virtual VOID EntryRemoved(__in FxTransactionedEntry *Entry)
VOID UnlockFromEnum(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
VOID LockForEnum(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
#define __in
Definition: dbghelp.h:35
#define __inout
Definition: dbghelp.h:50
#define __in_opt
Definition: dbghelp.h:38
#define TRUE
Definition: types.h:120
#define NonPagedPool
Definition: env_spec_w32.h:307
void FxPoolFree(__in_xcount(ptr is at an offset from AllocationStart) PVOID ptr)
Definition: wdfpool.cpp:361
GLsizei const GLvoid * pointer
Definition: glext.h:5848
#define _Must_inspect_result_
Definition: ms_sal.h:558
base of all file and directory entries
Definition: entries.h:83
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
_In_ BOOLEAN Remove
Definition: psfuncs.h:110
unsigned char UCHAR
Definition: xmlstorage.h:181