IFileCallbackClose::OnCloseFile method

[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.

Syntax


void OnCloseFile(
  [in] IWDFFile *pWdfFileObject
);

Parameters

pWdfFileObject [in]

A pointer to the IWDFFile interface for the file object that is associated with the device.

Return value

None

Remarks

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

For information about when the framework calls OnCloseFile, see Driver-Created Versus Application-Created File Objects.

Requirements

Header

Wudfddi.h (include Wudfddi.h)

See also

IFileCallbackClose
IWDFDriver::CreateDevice
IWDFFile

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft