WDF_FILEOBJECT_CONFIG_INIT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdevice-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

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.

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.