mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 17:33:18 +00:00
[WDF] Add Windows Driver Framework files
Takern from Microsoft GitHub repo:
d9c6040fe9
Licensed under MIT
This commit is contained in:
parent
545df81502
commit
8a978a179f
475 changed files with 285099 additions and 0 deletions
|
@ -0,0 +1,95 @@
|
|||
/*++
|
||||
|
||||
Copyright (c) Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
FxCxDeviceInit.hpp
|
||||
|
||||
Abstract:
|
||||
|
||||
|
||||
Author:
|
||||
|
||||
|
||||
Environment:
|
||||
|
||||
kernel mode only
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef __FXCXDEVICEINIT_HPP__
|
||||
#define __FXCXDEVICEINIT_HPP__
|
||||
|
||||
//
|
||||
// Holds class extension file object configuration.
|
||||
//
|
||||
struct CxFileObjectInit {
|
||||
WDF_FILEOBJECT_CLASS Class;
|
||||
|
||||
WDF_OBJECT_ATTRIBUTES Attributes;
|
||||
|
||||
WDFCX_FILEOBJECT_CONFIG Callbacks;
|
||||
|
||||
WDF_TRI_STATE AutoForwardCleanupClose;
|
||||
|
||||
BOOLEAN Set;
|
||||
};
|
||||
|
||||
//
|
||||
// The typedef for a pointer to this structure is exposed in wdfdevice.h
|
||||
//
|
||||
struct WDFCXDEVICE_INIT : public FxStump {
|
||||
public:
|
||||
WDFCXDEVICE_INIT();
|
||||
~WDFCXDEVICE_INIT();
|
||||
|
||||
static
|
||||
_Must_inspect_result_
|
||||
PWDFCXDEVICE_INIT
|
||||
_AllocateCxDeviceInit(
|
||||
__in PWDFDEVICE_INIT DeviceInit
|
||||
);
|
||||
|
||||
public:
|
||||
//
|
||||
// Class extension init list entry.
|
||||
//
|
||||
LIST_ENTRY ListEntry;
|
||||
|
||||
//
|
||||
// Client and Cx's globals.
|
||||
//
|
||||
PFX_DRIVER_GLOBALS ClientDriverGlobals;
|
||||
PFX_DRIVER_GLOBALS CxDriverGlobals;
|
||||
|
||||
//
|
||||
// Pre-proc info.
|
||||
//
|
||||
FxIrpPreprocessInfo* PreprocessInfo;
|
||||
|
||||
//
|
||||
// In caller context info.
|
||||
//
|
||||
PFN_WDF_IO_IN_CALLER_CONTEXT IoInCallerContextCallback;
|
||||
|
||||
//
|
||||
// Request attributes info.
|
||||
//
|
||||
WDF_OBJECT_ATTRIBUTES RequestAttributes;
|
||||
|
||||
//
|
||||
// File object info.
|
||||
//
|
||||
CxFileObjectInit FileObject;
|
||||
|
||||
//
|
||||
// Set during the device create.
|
||||
//
|
||||
FxCxDeviceInfo* CxDeviceInfo;
|
||||
};
|
||||
|
||||
#endif __FXCXDEVICEINIT_HPP__
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue