Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 2.98 KB

nf-wdfdevice-wdf_fileobject_config_init.md

File metadata and controls

83 lines (59 loc) · 2.98 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:wdfdevice.WDF_FILEOBJECT_CONFIG_INIT
WDF_FILEOBJECT_CONFIG_INIT function (wdfdevice.h)
The WDF_FILEOBJECT_CONFIG_INIT function initializes a driver's WDF_FILEOBJECT_CONFIG structure.
wdf\wdf_fileobject_config_init.htm
wdf
02/26/2018
WDF_FILEOBJECT_CONFIG_INIT function
DFDeviceObjectGeneralRef_ad75f4c0-79f7-42d6-8798-947cdcbfd8f1.xml, WDF_FILEOBJECT_CONFIG_INIT, WDF_FILEOBJECT_CONFIG_INIT function, kmdf.wdf_fileobject_config_init, wdf.wdf_fileobject_config_init, wdfdevice/WDF_FILEOBJECT_CONFIG_INIT
wdfdevice.h
Wdf.h
Universal
1.0
2.0
Any level
Windows
WDF_FILEOBJECT_CONFIG_INIT
wdfdevice/WDF_FILEOBJECT_CONFIG_INIT
APIRef
kbSyntax
HeaderDef
wdfdevice.h
WDF_FILEOBJECT_CONFIG_INIT

WDF_FILEOBJECT_CONFIG_INIT function

-description

[Applies to KMDF and UMDF]

The WDF_FILEOBJECT_CONFIG_INIT function initializes a driver's WDF_FILEOBJECT_CONFIG structure.

-parameters

-param FileEventCallbacks [out]

A pointer to a driver-allocated WDF_FILEOBJECT_CONFIG structure.

-param EvtDeviceFileCreate [in, optional]

A pointer to the driver's EvtDeviceFileCreate event callback function.

-param EvtFileClose [in, optional]

A pointer to the driver's EvtFileClose event callback function.

-param EvtFileCleanup [in, optional]

A pointer to the driver's EvtFileCleanup event callback function.

-remarks

The WDF_FILEOBJECT_CONFIG_INIT function sets the specified WDF_FILEOBJECT_CONFIG structure's Size member, stores the specified callback function pointers, sets the FileObjectClass member to WdfFileObjectWdfCannotUseFsContexts, and sets the AutoForwardCleanupClose member to WdfUseDefault.

Examples

For a code example that uses WDF_FILEOBJECT_CONFIG_INIT, see WdfDeviceInitSetFileObjectConfig.