HRESULT TopicAddGrammar(SRGRMFMT eFormat, PCTSTR pszTopic, SDATA sData);
Adds a new topic.
· Returns NOERROR if successful, or one of these error values:
E_INVALIDARG
E_OUTOFMEMORY
eFormat
[in] Grammar format to be added.
pszTopic
[in] Topic name. If this is NULL or an empty string the general topic, "General", will be used. If the topic exists then an error is returned.
sData
[in] Contains data that will be passed directly to ISRCentral::GrammarLoad. For more information see the section, "Low-Level Speech Recognition API."