IFileCallbackClose interface (wudfddi.h)

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

The framework can notify a driver when the driver should perform a close operation. The driver can handle the notification by registering the IFileCallbackClose interface.

A driver registers the IFileCallbackClose interface when it calls the IWDFDriver::CreateDevice method to create a device object.

Inheritance

The IFileCallbackClose interface inherits from the IUnknown interface. IFileCallbackClose also has these types of members:

  • Methods

Methods

The IFileCallbackClose interface has these methods.

 
IFileCallbackClose::OnCloseFile

The OnCloseFile method is called when the last reference count on a file object goes down to zero and before the file object is released.

Requirements

Requirement Value
Target Platform Windows
Header wudfddi.h