ISensorClassExtension::CleanupFile method (sensorsclassextension.h)
The ISensorClassExtension::CleanupFile method notifies the class extension about a file handle that closes and cancels all pending I/O requests, for the specified application.
HRESULT CleanupFile( IWDFFile *pWdfFile );
Pointer to an IWDFFile interface that represents the file object for the application being closed.
This method returns an HRESULT. Possible values include, but are not limited to, one of the following values.
|S_OK||The method succeeded.|
|E_POINTER||A required pointer argument was NULL.|
|HRESULT_FROM_WIN32(ERROR_CAN_NOT_COMPLETE)||The class extension is not initialized.|
Your driver must call this method to forward IFileCallbackCleanup::OnCleanupFile method calls from UMDF. You receive this call any time that a file handle closes. Typically, you receive this call after an application stops responding.