Microsoft DirectX 8.1 (C++)

IMediaLocator::AddFoundLocation

The AddFoundLocation method adds a directory to the directory cache.

Syntax

HRESULT AddFoundLocation(
    BSTR DirectoryName
);

Parameters

DirectoryName

Directory path to add to the cache.

Return Value

Returns S_OK if successful. Otherwise, returns an HRESULT value indicating the cause of the error.

Remarks

The media locator keeps a cache of directory paths where it has successfully found files in past searches. When it successfully locates a file, it adds the directory to the cache.

See Also