ITocParser::Init method (wmcodecdsp.h)
The Init method initializes the TOC Parser object and associates it with a media file.
HRESULT Init( LPCWSTR pwszFileName );
Pointer to a NULL-terminated wide-character string that specifies the path of the media file. See Remarks.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded.|
The path that you pass in pwszFileName must be a long Universal Naming Convention (UNC) file path. A long UNC file path begins with "\?". The following line of code shows how to set the path for the file c:\experiment\seattle.wmv.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|