ITocParser::Init method (wmcodecdsp.h)
The Init method initializes the TOC Parser object and associates it with a media file.
Syntax
HRESULT Init(
[in] LPCWSTR pwszFileName
);
Parameters
[in] pwszFileName
Pointer to a NULL-terminated wide-character string that specifies the path of the media file. See Remarks.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
Remarks
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.
pTocParser->Init(L"\\?\c:\experiment\seattle.wmv");
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wmcodecdsp.h |
DLL | Wmvdspa.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for