Microsoft Speech Platform
ISpRecoGrammar2::GetRules
ISpRecoGrammar2::GetRules is used to discover the list of public rules in the grammar.
HRESULT GetRules(
SPRULE **ppCoMemRules,
UINT *puNumRules
);
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. |