ReactOS 0.4.15-dev-7889-g76290a6
fxglobalsum.h File Reference
#include "FxGlobals.h"
Include dependency graph for fxglobalsum.h:

Go to the source code of this file.

Macros

#define DDI_ENTRY_IMPERSONATION_OK()    WDF_ACTIVATION activationFrame(GetActivationList()); \
 
#define DDI_ENTRY()
 

Functions

_Must_inspect_result_ __inline BOOLEAN FxIsProcessorGroupSupported (VOID)
 
__inline VOID FX_TRACK_DRIVER (__in PFX_DRIVER_GLOBALS FxDriverGlobals)
 
_Must_inspect_result_ __inline PVOID FxAllocateFromNPagedLookasideListNoTracking (__in PNPAGED_LOOKASIDE_LIST Lookaside)
 
__inline PVOID FxAllocateFromNPagedLookasideList (_In_ PNPAGED_LOOKASIDE_LIST Lookaside, _In_opt_ size_t ElementSize=0)
 
__inline PVOID FxAllocateFromPagedLookasideList (__in PPAGED_LOOKASIDE_LIST Lookaside)
 
__inline VOID FxFreeToNPagedLookasideListNoTracking (__in PNPAGED_LOOKASIDE_LIST Lookaside, __in PVOID Entry)
 
__inline VOID FxFreeToPagedLookasideList (__in PPAGED_LOOKASIDE_LIST Lookaside, __in PVOID Entry)
 
__inline VOID FxFreeToNPagedLookasideList (__in PNPAGED_LOOKASIDE_LIST Lookaside, __in PVOID Entry)
 
__inline BOOL IsCurrentThreadImpersonated ()
 
__inline PWDF_ACTIVATION_FRAME * GetActivationList (VOID)
 

Variables

IUMDFPlatform * g_IUMDFPlatform
 
IWudfHost2 * g_IWudfHost2
 

Macro Definition Documentation

◆ DDI_ENTRY

#define DDI_ENTRY ( )
Value:
FX_VERIFY( \
DRIVER(BadArgument, TODO), \
CHECK("It is illegal to invoke this DDI while " \
"thread is impersonated", \
);
#define CHECK(hwndTarget)
#define TODO
Definition: SAX2.c:44
#define FALSE
Definition: types.h:117
#define DDI_ENTRY_IMPERSONATION_OK()
Definition: fxglobalsum.h:170
__inline BOOL IsCurrentThreadImpersonated()
Definition: fxglobalsum.h:141

Definition at line 173 of file fxglobalsum.h.

◆ DDI_ENTRY_IMPERSONATION_OK

#define DDI_ENTRY_IMPERSONATION_OK ( )     WDF_ACTIVATION activationFrame(GetActivationList()); \

Definition at line 170 of file fxglobalsum.h.

Function Documentation

◆ FX_TRACK_DRIVER()

__inline VOID FX_TRACK_DRIVER ( __in PFX_DRIVER_GLOBALS  FxDriverGlobals)

Definition at line 52 of file fxglobalsum.h.

55{
56 UNREFERENCED_PARAMETER(FxDriverGlobals);
57 //
58 // Not yet supported for UMDF
59 //
60}
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317

◆ FxAllocateFromNPagedLookasideList()

__inline PVOID FxAllocateFromNPagedLookasideList ( _In_ PNPAGED_LOOKASIDE_LIST  Lookaside,
_In_opt_ size_t  ElementSize = 0 
)

Definition at line 76 of file fxglobalsum.h.

80{
82
83 //
84 // UMDF doesn't yet use a look-aside list, so just alloc memory from pool.
85 //
87 ElementSize,
88 0 // not used
89 );
90}
static __inline PVOID MxAllocatePoolWithTag(__in POOL_TYPE PoolType, __in SIZE_T NumberOfBytes, __in ULONG Tag)
Definition: mxmemorykm.h:30
#define NonPagedPool
Definition: env_spec_w32.h:307
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _In_ _Strict_type_match_ POOL_TYPE _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_opt_ ULONG _Out_ WDFLOOKASIDE * Lookaside
Definition: wdfmemory.h:414

◆ FxAllocateFromNPagedLookasideListNoTracking()

_Must_inspect_result_ __inline PVOID FxAllocateFromNPagedLookasideListNoTracking ( __in PNPAGED_LOOKASIDE_LIST  Lookaside)

Definition at line 65 of file fxglobalsum.h.

68{
70 ASSERTMSG("Not implemented for UMDF!\n", FALSE);
71 return NULL;
72}
#define NULL
Definition: types.h:112
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431

◆ FxAllocateFromPagedLookasideList()

__inline PVOID FxAllocateFromPagedLookasideList ( __in PPAGED_LOOKASIDE_LIST  Lookaside)

Definition at line 94 of file fxglobalsum.h.

97{
99 ASSERTMSG("Not implemented for UMDF!\n", FALSE);
100 return NULL;
101}

◆ FxFreeToNPagedLookasideList()

__inline VOID FxFreeToNPagedLookasideList ( __in PNPAGED_LOOKASIDE_LIST  Lookaside,
__in PVOID  Entry 
)

Definition at line 129 of file fxglobalsum.h.

133{
135
137}
static __inline VOID MxFreePool(__in PVOID Ptr)
Definition: mxmemorykm.h:41
base of all file and directory entries
Definition: entries.h:83

◆ FxFreeToNPagedLookasideListNoTracking()

__inline VOID FxFreeToNPagedLookasideListNoTracking ( __in PNPAGED_LOOKASIDE_LIST  Lookaside,
__in PVOID  Entry 
)

Definition at line 105 of file fxglobalsum.h.

109{
112 ASSERTMSG("Not implemented for UMDF!\n", FALSE);
113}

◆ FxFreeToPagedLookasideList()

__inline VOID FxFreeToPagedLookasideList ( __in PPAGED_LOOKASIDE_LIST  Lookaside,
__in PVOID  Entry 
)

Definition at line 117 of file fxglobalsum.h.

121{
124 ASSERTMSG("Not implemented for UMDF!\n", FALSE);
125}

◆ FxIsProcessorGroupSupported()

_Must_inspect_result_ __inline BOOLEAN FxIsProcessorGroupSupported ( VOID  )

Definition at line 39 of file fxglobalsum.h.

42{
43 //
44 // UMDF 2.0 is targeted for platforms that support processor groups.
45 //
46 return TRUE;
47}
#define TRUE
Definition: types.h:120

◆ GetActivationList()

__inline PWDF_ACTIVATION_FRAME * GetActivationList ( VOID  )

Definition at line 148 of file fxglobalsum.h.

151{
152 return g_IUMDFPlatform->GetActivationListHead();
153}
IUMDFPlatform * g_IUMDFPlatform
Definition: mxgeneralum.cpp:29

◆ IsCurrentThreadImpersonated()

__inline BOOL IsCurrentThreadImpersonated ( )

Definition at line 141 of file fxglobalsum.h.

142{
143 return g_IWudfHost2->IsCurrentThreadImpersonated();
144}
IWudfHost2 * g_IWudfHost2
Definition: framework.cpp:48

Variable Documentation

◆ g_IUMDFPlatform

IUMDFPlatform* g_IUMDFPlatform
extern

Definition at line 29 of file mxgeneralum.cpp.

Referenced by GetActivationList().

◆ g_IWudfHost2

IWudfHost2* g_IWudfHost2
extern

Definition at line 48 of file framework.cpp.

Referenced by IsCurrentThreadImpersonated().