ISpObjectTokenEnumBuilder::Sort (SAPI 5.4)

Microsoft Speech API 5.4

ISpObjectTokenEnumBuilder::Sort

ISpObjectTokenEnumBuilder::Sort sorts the list of enumerated object tokens.

  
    HRESULT Sort(
   LPCWSTR   *pszTokenIdToListFirst
);

Parameters

  • pszTokenIdToListFirst
    Address of a null-terminated string of tokenId for the first token in the sorted list.

Return values

Value
S_OK
E_POINTER
SPERR_UNINITIALIZED
FAILED(hr)

If the optional attributes of the EnumBuilder have been set, the first token in the EnumBuilder after the Sort call will be the token that matches the optional attributes best, not the token that pszTokenIdToListFirst refers to.