IFileCallbackCleanup 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 cleanup operation. The framework notifies the driver in response to an application calling the CloseHandle Microsoft Win32 function. The driver can handle the notification by registering the IFileCallbackCleanup interface.
A driver registers the IFileCallbackCleanup interface when it calls the IWDFDriver::CreateDevice method to create a device object.
The IFileCallbackCleanup interface inherits from the IUnknown interface. IFileCallbackCleanup also has these types of members:
The IFileCallbackCleanup interface has these methods.
The OnCleanupFile method cancels all I/O requests that a driver has pending in the framework queue.
|Header||wudfddi.h (include Wudfddi.h)|
Submit and view feedback for