Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpRecoGrammar2::GetRules
ISpRecoGrammar2::GetRules is used to find the public rules in a grammar.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetRules(</strong> <strong> <a runat="server" href="jj127881(v=msdn.10).md">SPRULE</a></strong> **<em>ppCoMemRules</em>, <strong> UINT</strong> *<em>puNumRules</em> <strong>);</strong> </pre>
Parameters
- ppCoMemRules
Returns an array of SPRULE structures. - puNumRules
Returns the number of SPRULE structures in the ppCoMemRules array.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | One of the parameters is invalid. |
FAILED(hr) | Appropriate error message. |