情報
要求されたトピックは次のとおりです。しかし、このトピックはこのライブラリには含まれていません。

EvtFileCleanup

A driver's EvtFileCleanup callback function handles operations that must be performed when an application is closing all accesses to a device.

構文

EVT_WDF_FILE_CLEANUP EvtFileCleanup;

VOID EvtFileCleanup(
  __in  WDFFILEOBJECT FileObject
)
{ ... }

パラメーター

FileObject [in]

A handle to a framework file object, which was previously received by the driver's EvtDeviceFileCreate callback function.

戻り値

None

解説

The framework calls a driver's EvtFileCleanup callback function when the last handle to the specified file object has been closed. (Because of outstanding I/O requests, this handle might not have been released.)

After the framework calls a driver's EvtFileCleanup callback function, it calls the driver's EvtFileClose callback function.

The EvtFileCleanup callback function is called synchronously, in the context of the thread that closed the last file object handle.

To register an EvtFileCleanup callback function, the driver must call the WdfDeviceInitSetFileObjectConfig method.

For more information about framework file objects and the EvtFileCleanup callback function, see Framework File Objects.

The function type is declared in Wdfdevice.h, as follows.

typedef VOID
 (EVT_WDF_FILE_CLEANUP)(
    IN WDFFILEOBJECT  FileObject
    );

To define an EvtFileCleanup callback function that is named MyFileCleanup, you must first provide a function declaration that SDV and other verification tools require, as follows:

EVT_WDF_FILE_CLEANUP  MyFileCleanup;

Then, implement your callback function as follows:

VOID
 MyFileCleanup (
    IN WDFFILEOBJECT  FileObject
    )
  {...}

要件

バージョン

Supported by version 1.0 and later versions of KMDF.

ヘッダー

Wdfdevice.h (includeWdf.h)

IRQL

PASSIVE_LEVEL

参照

WDF_FILEOBJECT_CONFIG

 

 

コミュニティの追加

表示:
© 2014 Microsoft