Partager via


ISpNotifySource::SetNotifyWin32Event (SAPI 5.4)

Microsoft Speech API 5.4

ISpNotifySource::SetNotifyWin32Event

ISpNotifySource::SetNotifyWin32Event sets up a Win32 event object to be used by this instance for notifications. The event handle can be retrieved through GetNotifyEventHandle.

  
    HRESULT   SetNotifyWin32Event  ( void );

Parameters

None

Return values

Value
S_OK
FAILED (hr)

Remarks

Once an event object has been initialized for this instance, use either WaitForNotifyEvent or use GetNotfyEventHandle and wait using one of the various Win32 synchronization functions. Note that Win32 event objects and SAPI events are different objects.