Share via


SPFEI

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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

Syntax

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 Value

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

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

See Also

Reference

SAPI Macros