Note [Deprecated. This API may be removed from future releases of Windows.]
IMediaLocator interface provides methods for validating file names in DirectShow Editing Services (DES). Use this interface to ensure that a given file name and path correspond to an existing file. This interface also provides a way to search for the file at other locations, and to display an Open dialog box so that the user can locate the file.
The media locator implements this interface. The timeline and the render engine also support file name validation through the following methods:
- IAMTimeline::ValidateSourceNames: Validates and updates file names in the timeline.
- IRenderEngine::SetSourceNameValidation: Specifies how the render engine validates file names at rendering time.
Typically, a DES application will call these methods rather than directly create an instance of the media locator. For more information, see Using the Media Locator.
The IMediaLocator interface inherits from the IUnknown interface. IMediaLocator also has these types of members:
The IMediaLocator interface has these methods.
Adds a directory to the directory cache.
Searches for a file and, if successful, retrieves the path to the file.
Note The header file Qedit.h is not compatible with Direct3D headers later than version 7.
Note To obtain Qedit.h, download the Microsoft Windows SDK Update for Windows Vista and .NET Framework 3.0. Qedit.h is not available in the Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1.