WDF_FILEOBJECT_CONFIG_INIT function

[Applies to KMDF and UMDF]

The WDF_FILEOBJECT_CONFIG_INIT function initializes a driver's WDF_FILEOBJECT_CONFIG structure.

Syntax


VOID WDF_FILEOBJECT_CONFIG_INIT(
  _Out_     PWDF_FILEOBJECT_CONFIG FileEventCallbacks,
  _In_opt_  PFN_WDF_DEVICE_FILE_CREATE EvtDeviceFileCreate,
  _In_opt_  PFN_WDF_FILE_CLOSE EvtFileClose,
  _In_opt_  PFN_WDF_FILE_CLEANUP EvtFileCleanup
);

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.

Return value

None

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.

Requirements

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfdevice.h (include Wdf.h)

IRQL

Any level

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft