ReactOS 0.4.15-dev-7693-gd0e2924
fxobject.cpp File Reference
#include "fxobjectpch.hpp"
Include dependency graph for fxobject.cpp:

Go to the source code of this file.

Functions

VOID FX_VF_METHOD (FxObject, VerifyConstruct)(_In_ PFX_DRIVER_GLOBALS FxDriverGlobals
 
 PAGED_CODE_LOCKED ()
 
 ASSERTMSG ("this object's type is not listed in FxObjectsInfo\n", FxVerifyObjectTypeInTable(m_Type))
 
 if (m_Globals->IsObjectDebugOn() &&Embedded==FALSE)
 

Variables

ULONG DebugLevel = TRACE_LEVEL_INFORMATION
 
ULONG DebugFlag = 0xff
 
VOID _In_ BOOLEAN Embedded
 

Function Documentation

◆ ASSERTMSG()

ASSERTMSG ( "this object's type is not listed in FxObjectsInfo\n"  ,
FxVerifyObjectTypeInTable(m_Type)   
)

◆ FX_VF_METHOD()

VOID FX_VF_METHOD ( FxObject  ,
VerifyConstruct   
)

◆ if()

if ( m_Globals->IsObjectDebugOn() &&  Embedded = FALSE)

Definition at line 180 of file fxobject.cpp.

180 {
181 FxObjectDebugExtension* pExtension;
182
183 m_ObjectFlags |= FXOBJECT_FLAGS_HAS_DEBUG;
184
185 pExtension = GetDebugExtension();
187
188 //
189 // Assume that zero is an invalid state.
190 //
192 RtlZeroMemory(&pExtension->StateHistory[0],
193 ARRAY_SIZE(pExtension->StateHistory));
194 pExtension->StateHistoryIndex = 0;
195
196 //
197 // Setup the first slot to our new state.
198 //
199 pExtension->StateHistory[0] = FxObjectStateCreated;
200
201 AllocateTagTracker(m_Type);
202 }
#define ARRAY_SIZE(A)
Definition: main.h:33
@ FxObjectStateCreated
Definition: fxobject.hpp:160
@ FxObjectStateInvalid
Definition: fxobject.hpp:159
@ FXOBJECT_FLAGS_HAS_DEBUG
Definition: fxobject.hpp:147
@ FxObjectDebugExtensionSignature
Definition: fxobject.hpp:227
#define ASSERT(a)
Definition: mode.c:44
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
#define WDFCASSERT(c)
Definition: wdfassert.h:93

◆ PAGED_CODE_LOCKED()

PAGED_CODE_LOCKED ( )

Variable Documentation

◆ DebugFlag

ULONG DebugFlag = 0xff

Definition at line 44 of file fxobject.cpp.

Referenced by _main(), DoTraceLevelMessage(), and SmExecPgm().

◆ DebugLevel

Definition at line 43 of file fxobject.cpp.

◆ Embedded

VOID _In_ BOOLEAN Embedded
Initial value:
{
UNREFERENCED_PARAMETER(FxDriverGlobals)
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317

Definition at line 162 of file fxobject.cpp.

Referenced by FxObject::Construct().