Microsoft DirectX 9.0

AMTimeline.ValidateSourceNames Method

The ValidateSourceNames method validates source names in the timeline, using the media locator. Optionally, this method also updates any source object for which it locates a file.


    ValidateFlags As Long,
    pOverride As MediaLocator,
    NotifyEventHandle As LONG_PTR



Bitwise combination of flags specifying the behavior of the media locator. See File Name Validation Flags for possible values. The SFN_VALIDATEF_REPLACE and SFN_VALIDATEF_CHECK flags must be present, or the method returns E_INVALIDARG.


Optional MediaLocator object to use in place of the default. To use the default media locator, set the value of this parameter to Nothing.


Variable of type LONG_PTR. This parameter is ignored and can be zero.

Error Codes

If the method fails, an error is raised, and Err.Number can be set to the following value:

Value Description
E_INVALIDARG Invalid argument.

See Also