IVCmdUserWord::QueryPhrase
This method determines what kind of templates a phrase has and whether or not they are enabled.
Syntax
HRESULT QueryPhrase( LPTSTR lpszPhrase, DWORD *pdwValue);
Parameters
- lpszPhrase
- Long pointer to the null-terminated string that contains the phrase of interest.
- pdwValue
- Pointer to the bitmask of flags that indicate the training templates associated with the phrase. It is one of the following values:
- SRPHRASE_SI
- Specifies the speaker independent template.
- SRPHRASE_SD
- Specifies the speaker dependent template.
- SRPHRASE_SI_ENABLE
- The speaker-independent template is enabled/disabled.
- SRPHRASE_SD_ENABLE
- The speaker-dependent template is enabled/disabled.
Return Values
NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.