Share via


ISpNotifySource::SetNotifyWin32Event (Windows Embedded CE 6.0)

1/6/2010

This method sets up a Win32 event object to be used for notifications. The event handle can be retrieved through the ISpNotifySource::GetNotifyEventHandle method. Once an event object has been initialized, the client uses either the GetNotifyEventHandle method or the ISpNotifySource::WaitForNotifyEvent method, and waits using one of the various Win32 synchronization functions.

Win32 events and SAPI events are different objects. For an explanation of Win32 event objects, see the Win32 Microsoft Windows SDK documentation.

Syntax

HRESULT SetNotifyWin32Event(void);

Parameters

None.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

FAILED(hr)

Appropriate error message.

Requirements

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpNotifySource
SAPI Interfaces