ISpNotifyTranslator::Wait (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpNotifyTranslator::Wait

ISpNotifyTranslator::Wait is a blocking call that returns when a SAPI notification has fired and the associated Win32 event object has been signaled or a timeout has passed. This method is applicable only with objects using Win32 events.


HRESULT Wait(
   DWORD   dwMilliseconds
);

Parameters

dwMilliseconds
[in] Number of milliseconds for the timeout on a blocking call. If set to INFINITE, there is no timeout.

Return values

ValueDescription
S_OKFunction completed successfully.
S_FALSEThe event was not set and the call was timed out.
SPERR_UNINITIALIZEDInitWin32Event did not return successfully or has not been called.
Show: