ITocEntry::GetSubEntries method (wmcodecdsp.h)

The GetSubEntries method gets an array of subentry indices that were set by a previous call to SetSubEntries.

Syntax

HRESULT GetSubEntries(
  [in, out] DWORD *pdwNumSubEntries,
  [out]     WORD  *pwSubEntryIndices
);

Parameters

[in, out] pdwNumSubEntries

If pwSubEntryIndices is NULL, this is an output parameter that receives the number of subentries associated with this entry. If pwSubEntryIndices is not NULL, this is an input parameter that specifies the number of DWORDs in the caller-allocated array pointed to by pwSubEntryIndices.

[out] pwSubEntryIndices

NULL, or a pointer to a caller-allocated array of DWORDs that receives the subentry indices.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
MF_E_BUFFERTOOSMALL
The method returns this error code if pwSubEntryIndices is not NULL and the number of subentries is larger than the number specified by pdwNumSubEntries. In that case, pdwNumSubEntries serves as an output parameter and receives the number of available subentry indices.

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

ITocEntry

SetSubEntries