[Applies to UMDF 1.x only]
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.
- pWdfFileObject [in]
A pointer to the IWDFFile interface for the file object that is associated with the device.
For information about when the framework calls OnCloseFile, see Driver-Created Versus Application-Created File Objects.