Compartir a través de


ISpAudio::EventHandle (Windows CE 5.0)

Send Feedback

This method returns a Win32 event handle that applications can use to wait for status changes in the I/O stream. The handle can use one of the various Win32 wait functions, such as WaitForSingleObject or WaitForMultipleObjects.

For read streams, set the event when there is data available to read and reset it whenever there is no available data. For write streams, set the event when all the data has been written to the device, and reset it at any time when there is still data available to be played.

The caller should not close the returned handle, nor ever use the event handle after calling Release on the audio object. The audio device will close the handle on the final release of the object.

HANDLE EventHandle(void);

Parameters

None.

Return Values

The following table shows the possible return value.

Value Description
HANDLE Returns valid event handle.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.

See Also

ISpAudio | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.