Microsoft DirectX 9.0 |
The Load method causes a source filter to load a media file.
Syntax
HRESULT Load(
LPCOLESTR pszFileName,
const AM_MEDIA_TYPE *pmt
);
Parameters
pszFileName
[in] Pointer to the name of the file to open.
pmt
[in] Pointer to the media type of the file. This can be NULL.
Return Values
Returns an HRESULT value.
Remarks
This method initializates the interface. It is not designed to load multiple files, and any calls to this method after the first call will fail.
Depending on the filter, the pszFileName parameter should specify the absolute path to a file on disk (File Source (Async) filter, WM ASF Reader filter) or the URL of a file to download (File Source (URL) filter).
See Also