|Microsoft DirectX 9.0|
The SetFileName method sets the name of the file into which media samples will be written.
HRESULT SetFileName( LPCOLESTR pszFileName, const AM_MEDIA_TYPE *pmt );
[in] Pointer to the name of the file to receive the media samples.
[in] Pointer to the type of media samples to be written to the file, and the media type of the sink filter's input pin.
Returns an HRESULT value.
If the pszFileName parameter names a nonexistent file, the file will be created. If it names an existing file, the sink filter will overwrite the file without first deleting it.