ISpNotifyTranslator::Wait (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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

Value Description
S_OK Function completed successfully.
S_FALSE The event was not set and the call was timed out.
SPERR_UNINITIALIZED InitWin32Event did not return successfully or has not been called.