ISpNotifySource::SetNotifyWin32Event

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

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 Description
S_OK Function completed successfully.
FAILED (hr) Appropriate error message.

Remarks

For an explanation of Win32 event objects, see the Win32 Platform SDK documentation. 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.