ReactOS  0.4.15-dev-3428-g0609db5
fxuserobjectapi.cpp File Reference
#include "fxobjectpch.hpp"
#include "fxuserobject.hpp"
Include dependency graph for fxuserobjectapi.cpp:

Go to the source code of this file.

Functions

_Must_inspect_result_ __drv_maxIRQL (DISPATCH_LEVEL) NTSTATUS STDCALL WDFEXPORT(WdfObjectCreate)(__in PWDF_DRIVER_GLOBALS DriverGlobals
 
 if (NT_SUCCESS(FxValidateObjectAttributesForParentHandle(pFxDriverGlobals, Attributes)))
 
 FxPointerNotNull (pFxDriverGlobals, Object)
 
 if (!NT_SUCCESS(status))
 
 if (NT_SUCCESS(status))
 

Variables

_Must_inspect_result_ __in_opt PWDF_OBJECT_ATTRIBUTES Attributes
 
_Must_inspect_result_ __in_opt PWDF_OBJECT_ATTRIBUTES __out WDFOBJECTObject
 
NTSTATUS status
 
WDFOBJECT handle
 
FxUserObjectpUserObject = NULL
 
PFX_DRIVER_GLOBALS pFxDriverGlobals = GetFxDriverGlobals(DriverGlobals)
 

Function Documentation

◆ __drv_maxIRQL()

◆ FxPointerNotNull()

FxPointerNotNull ( pFxDriverGlobals  ,
Object   
)

◆ if() [1/3]

Definition at line 108 of file fxuserobjectapi.cpp.

109  {
110  FxObject* pParent;
111 
113  Attributes->ParentObject,
115  (PVOID*)&pParent,
117  }
FxObject * pParent
Definition: fxdpcapi.cpp:86
FxObjectHandleGetPtrAndGlobals(GetFxDriverGlobals(DriverGlobals), Device, FX_TYPE_DEVICE,(PVOID *)&pDevice, &pFxDriverGlobals)
PFX_DRIVER_GLOBALS pFxDriverGlobals
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes

◆ if() [2/3]

if ( NT_SUCCESSstatus)

Definition at line 125 of file fxuserobjectapi.cpp.

125  {
126  return status;
127  }
NTSTATUS status

◆ if() [3/3]

if ( NT_SUCCESS(status )

Definition at line 133 of file fxuserobjectapi.cpp.

133  {
135  *Object = handle;
136 
139  "Created UserObject Handle 0x%p",
140  handle);
141  }
WDFOBJECT handle
#define TRACE_LEVEL_VERBOSE
Definition: storswtr.h:30
FxUserObject * pUserObject
__inline WDFOBJECT GetHandle(VOID)
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
#define TRACINGUSEROBJECT
Definition: dbgtrace.h:64
PFX_DRIVER_GLOBALS pFxDriverGlobals

Variable Documentation

◆ Attributes

◆ handle

Definition at line 98 of file fxuserobjectapi.cpp.

Referenced by if().

◆ Object

Initial value:
{
#define DDI_ENTRY()
Definition: fxglobalskm.h:56

Definition at line 94 of file fxuserobjectapi.cpp.

◆ pFxDriverGlobals

pFxDriverGlobals = GetFxDriverGlobals(DriverGlobals)

Definition at line 100 of file fxuserobjectapi.cpp.

Referenced by if().

◆ pUserObject

pUserObject = NULL

Definition at line 99 of file fxuserobjectapi.cpp.

Referenced by FxUserObject::_Create(), and if().

◆ status

Initial value:
)
_Must_inspect_result_ NTSTATUS FxValidateObjectAttributes(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDF_OBJECT_ATTRIBUTES Attributes, __in ULONG Flags=FX_VALIDATE_OPTION_NONE_SPECIFIED)
PFX_DRIVER_GLOBALS pFxDriverGlobals
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes

Definition at line 97 of file fxuserobjectapi.cpp.

Referenced by if().