Export (0) Print
Expand All

CopyTo (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

CSpEvent::CopyTo

CSpEvent::CopyTo copies the event instance and sets the lparam accordingly.

HRESULT CopyTo(
   SPEVENT   *pDestEvent
);

Parameters

pDestEvent
The event to copy to. The member elParamType is copied according to the follow parameter value:
SPET_LPARAM_IS_POINTER copies wparam into lparam if lparam is currently valid. On error, pDestEvent->eEventId is set to SPEI_UNDEFINED.
SPET_LPARAM_IS_STRING copies lparam into lparam if it is currently valid. On error, pDestEvent->eEventId is set to SPEI_UNDEFINED.
SPET_LPARAM_IS_TOKEN or SPET_LPARAM_IS_OBJECT calls AddRef() for lparam.

Return values

ValueDescription
S_OKFunction completed successfully.
E_OUTOFMEMORYExceeded available memory.
Show:
© 2014 Microsoft