IToc::SetContext method (wmcodecdsp.h)
The SetContext method associates a caller-supplied context block with the table of contents.
Syntax
HRESULT SetContext(
[in] DWORD dwContextSize,
[in] BYTE *pbtContext
);
Parameters
[in] dwContextSize
The size, in bytes, of the context block.
[in] pbtContext
Pointer to the first byte of the context block.
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
You can use this method to associate any information with the table of contents. The type of information you store in the context block is completely up to you. TOC Parser does not inspect or interpret the context block.
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 |