Helper SpGetCategoryFromId

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK

SAPI 5.1


SpInitTokenComboBox

SpInitTokenComboBox initializes a combo box with the description of tokens from a specified category.

Found in: spuihelp.h

HRESULT SpInitTokenComboBox(
   HWND		hwnd,
   const WCHAR* pszCatName,
   const WCHAR* pszRequiredAttrib = NULL,
   const WCHAR* pszOptionalAttrib = NULL
);

Parameters

hwnd
[in] The handle of the combo box that is to be initialized with tokens.
pszCatName
[in] The category of the tokens to initialize the combo box.
pszRequiredAttrib
[in] Required attributes.
pszOptionalAttrib
[in] Optional attributes.

Return values

ValueDescription
S_OKFunction completed successfully.
FAILED (hr)Appropriate error message.