ReactOS  0.4.15-dev-2956-g61e7ea5
fxcxdeviceinit.cpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxCxDeviceInit.cpp
8 
9 Abstract:
10  Internals for WDFCXDEVICE_INIT
11 
12 Author:
13 
14 
15 
16 Environment:
17 
18  Both kernel and user mode
19 
20 Revision History:
21 
22 
23 
24 --*/
25 
26 #include "coreprivshared.hpp"
27 
28 extern "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 
FxCxDeviceInfo * CxDeviceInfo
LIST_ENTRY ListEntry
PFN_WDF_IO_IN_CALLER_CONTEXT IoInCallerContextCallback
_Must_inspect_result_ FORCEINLINE BOOLEAN IsListEmpty(_In_ const LIST_ENTRY *ListHead)
Definition: rtlfuncs.h:57
static int init
Definition: wintirpc.c:33
_In_ PWDFDEVICE_INIT _In_ PWDF_OBJECT_ATTRIBUTES RequestAttributes
Definition: wdfdevice.h:3428
FxIrpPreprocessInfo * PreprocessInfo
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:547
#define TRACINGDEVICE
Definition: dbgtrace.h:58
#define ASSERT(a)
Definition: mode.c:44
static _Must_inspect_result_ PWDFCXDEVICE_INIT _AllocateCxDeviceInit(__in PWDFDEVICE_INIT DeviceInit)
PFX_DRIVER_GLOBALS CxDriverGlobals
PFX_DRIVER_GLOBALS ClientDriverGlobals
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define TRACE_LEVEL_ERROR
Definition: storswtr.h:27
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
PFX_DRIVER_GLOBALS fxDriverGlobals
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
#define NULL
Definition: types.h:112
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdfcontrol.h:113
#define __in
Definition: dbghelp.h:35