다음을 통해 공유


SPFEI (Windows CE 5.0)

Send Feedback

This macro casts the specified value to a 64-bit type.

SPFEI(void* SPEI_ord);

Parameters

  • SPEI_ord
    [in, out] Pointer to the value. On input, this parameter indicates the value to cast. On output, it indicates the recast value. For a list of the supported types of values, see SPEVENTENUM.

Return Values

No error code is returned.

Remarks

Helper macros related to SPFEI are listed below.

Macro Description
SPFEI_FLAGCHECK Retrieves reserved flags for the event interest enumeration.
SPEI_ALL_EVENTS Retrieves all possible event flags.
SPFEI_ALL_TTS_EVENTS Retrieves all possible text-to-speech (TTS) event flags.
SPFEI_ALL_SR_EVENTS Retrieves all possible speech recognition (SR) event flags.

SAPI uses the SPFEI_FLAGCHECK macro to retrieve flags that must always be included in any event interest. Use of this macro helps developers avoid mistakes by using event interest-related methods with the actual enumeration. See ISpEventSource::SetInterest and ISpRecoContext::SetVoicePurgeEvent.

Example

The following example shows the SPFEI macro used to set the SR event interest.

hr = g_cpRecoCtxt->SetInterest(SPFEI(SPEI_RECOGNITION), SPFEI(SPEI_RECOGNITION));

The following example shows the SPFEI_ALL_SR_EVENTS macro used to set SR event interest in all events. This is an example and not recommended practice.

hr = g_cpRecoCtxt->SetInterest(SPFEI_ALL_SR_EVENTS, SPFEI_ALL_SR_EVENTS);

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h., Sapi.idl.

See Also

SAPI Macros

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.