// wdfdevice.h
VOID WDF_FILEOBJECT_CONFIG_INIT(
[out] PWDF_FILEOBJECT_CONFIG FileEventCallbacks,
[in, optional] PFN_WDF_DEVICE_FILE_CREATE EvtDeviceFileCreate,
[in, optional] PFN_WDF_FILE_CLOSE EvtFileClose,
[in, optional] PFN_WDF_FILE_CLEANUP EvtFileCleanup
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WDF_FILEOBJECT_CONFIG_INIT function initializes a driver's WDF_FILEOBJECT_CONFIG structure.
FileEventCallbacks
[out]A pointer to a driver-allocated WDF_FILEOBJECT_CONFIG structure.
EvtDeviceFileCreate
[in, optional]A pointer to the driver's EvtDeviceFileCreate event callback function.
EvtFileClose
[in, optional]A pointer to the driver's EvtFileClose event callback function.
EvtFileCleanup
[in, optional]A pointer to the driver's EvtFileCleanup event callback function.
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.
For a code example that uses WDF_FILEOBJECT_CONFIG_INIT, see WdfDeviceInitSetFileObjectConfig.