IAPCSpeech::SetMsgOptions

This method sets options for message notifications.

Syntax

HRESULT IAPCSpeech::SetMsgOptions ( DWORD dwFlags, DWORD dwVCmdOpt, DWORD dwVTxtOpt );

Parameters

dwFlags
Reserved; set to 0.
dwVCmdOpt
Specifies options for the voice command notifications. It is one or a both of the following values:
VCMDRF_CMDOTHER
VCMDRF_CMDSTART

dwVCmdOpt
Specifies options for the voice text notifications. It is one or a combination of the following values:
VTXTF_SPEAKSTART
VTXTF_SPEAKDONE

Return Values

An appropriate HRESULT value is returned.

Remarks

By default, the applications always receive the following speech notifications:

SetMsgOptions can be used to enable an application to receive in wParam the four additional WM_SPCH_NOTIFY messages set in dwVCmdOpt and dwVCmdOpt.

Once SetMsgOptions has been called with VTXTF_SPEAKSTART, VTXTF_SPEAKSTOP, or both, it cannot be called again to reset the option.

See Also

sndPlaySound