ReactOS 0.4.15-dev-7924-g5949c20
fxcxdeviceinit.cpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxCxDeviceInit.cpp
8
9Abstract:
10 Internals for WDFCXDEVICE_INIT
11
12Author:
13
14
15
16Environment:
17
18 Both kernel and user mode
19
20Revision History:
21
22
23
24--*/
25
26#include "coreprivshared.hpp"
27
28extern "C" {
29// #include "FxCxDeviceInit.tmh"
30}
31
33{
35
42 FileObject.AutoForwardCleanupClose = WdfUseDefault;
44}
45
47{
49
50 if (PreprocessInfo != NULL) {
51 delete PreprocessInfo;
52 }
53}
54
59 )
60{
63
64 fxDriverGlobals = DeviceInit->DriverGlobals;
65
67 if (init == NULL) {
69 "WDFDRIVER 0x%p couldn't allocate WDFCXDEVICE_INIT",
70 DeviceInit->Driver);
71 return NULL;
72 }
73
74 DeviceInit->AddCxDeviceInit(init);
75
76 return init;
77}
78
#define __in
Definition: dbghelp.h:35
#define TRACINGDEVICE
Definition: dbgtrace.h:58
#define NULL
Definition: types.h:112
#define IsListEmpty(ListHead)
Definition: env_spec_w32.h:954
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
PFX_DRIVER_GLOBALS fxDriverGlobals
#define ASSERT(a)
Definition: mode.c:44
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define TRACE_LEVEL_ERROR
Definition: storswtr.h:27
PFN_WDF_IO_IN_CALLER_CONTEXT IoInCallerContextCallback
static _Must_inspect_result_ PWDFCXDEVICE_INIT _AllocateCxDeviceInit(__in PWDFDEVICE_INIT DeviceInit)
PFX_DRIVER_GLOBALS ClientDriverGlobals
FxIrpPreprocessInfo * PreprocessInfo
FxCxDeviceInfo * CxDeviceInfo
LIST_ENTRY ListEntry
PFX_DRIVER_GLOBALS CxDriverGlobals
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdfcontrol.h:113
_In_ PWDFDEVICE_INIT _In_ PWDF_OBJECT_ATTRIBUTES RequestAttributes
Definition: wdfdevice.h:3431
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:550
@ WdfUseDefault
Definition: wdftypes.h:89
static int init
Definition: wintirpc.c:33