[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.] Drivers obtain the IWDFFile2 interface by calling IWDFFile::QueryInterface. ## Methods
The IWDFFile2 interface has these methods.
|wudfddi.IWDFFile2.GetRelatedFileObject||The GetRelatedFileObject method retrieves the IWDFFile interface of a related file object, which is a file object that has a technology-specific relationship with another file object.|
|wudfddi.IWDFFile2.RetrieveCountedFileName||The RetrieveCountedFileName method retrieves the full counted file name for a file that is associated with a device.|
|Windows Driver kit version|
|Minimum UMDF version||1.9|