Microsoft DirectX 9.0

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.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also