ReactOS 0.4.15-dev-7934-g1dc8d80
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]

if ( NT_SUCCESSstatus)

Definition at line 125 of file fxuserobjectapi.cpp.

125 {
126 return status;
127 }
NTSTATUS status

◆ if() [2/3]

Definition at line 108 of file fxuserobjectapi.cpp.

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

◆ 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 }
__inline WDFOBJECT GetHandle(VOID)
#define TRACINGUSEROBJECT
Definition: dbgtrace.h:64
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
FxUserObject * pUserObject
WDFOBJECT handle
#define TRACE_LEVEL_VERBOSE
Definition: storswtr.h:30
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object

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 49 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:
)
@ FX_VALIDATE_OPTION_EXECUTION_LEVEL_ALLOWED
_Must_inspect_result_ NTSTATUS FxValidateObjectAttributes(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDF_OBJECT_ATTRIBUTES Attributes, __in ULONG Flags=FX_VALIDATE_OPTION_NONE_SPECIFIED)

Definition at line 97 of file fxuserobjectapi.cpp.

Referenced by if().