Share via


SPEVENTLPARAMTYPE

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

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This enumeration represents pointers to types of parameters.

Syntax

typedef enum SPEVENTLPARAMTYPE{
  SPET_LPARAM_IS_UNDEFINED = 0,
  SPET_LPARAM_IS_TOKEN,
  SPET_LPARAM_IS_OBJECT,
  SPET_LPARAM_IS_POINTER,
  SPET_LPARAM_IS_STRING
} SPEVENTLPARAMTYPE;

Elements

  • SPET_LPARAM_IS_UNDEFINED
    The lParam value in the SPEVENT structure represents an undefined value. For all TTS events, except SPEI_VOICE_CHANGE and SPEI_TTS_BOOKMARK, the parameter type is SPET_LPARAM_IS_UNDEFINED. Possible events are defined for the SPEVENTENUM enumeration.
  • SPET_LPARAM_IS_TOKEN
    The SPEVENT.lParam value points to an object implementing ISpObjectToken. For example, since the TTS voice change event (SPEI_VOICE_CHANGE) includes a pointer to the object token for the new voice, SPEVENT.lparam is set to SPET_LPARAM_IS_TOKEN.
  • SPET_LPARAM_IS_OBJECT
    The SPEVENT.lParam value points to an object. For example, since the speech recognition event (SPEI_RECOGNITION) includes a pointer to the recognition result (ISpRecoResult), SPEVENT.lParam is set to SPET_LPARAM_IS_OBJECT.
  • SPET_LPARAM_IS_POINTER
    The SPEVENT.lParam value represents a memory pointer.
  • SPET_LPARAM_IS_STRING
    The SPEVENT.lParam value points to a string. For example, since the TTS bookmark event (SPEI_TTS_BOOKMARK) includes a pointer to the bookmark name, SPEVENT.lParam is set to SPET_LPARAM_IS_STRING.

Requirements

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

See Also

Reference

SAPI Enumerations
ISpObjectToken
ISpRecoResult
SPEVENT
SPEVENTENUM