Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

CSpEvent::CopyTo

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

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT CopyTo(</strong> <strong> SPEVENT</strong> *<em>pDestEvent</em> <strong>);</strong></pre>

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

Value Description
S_OK Function completed successfully.
E_OUTOFMEMORY Exceeded available memory.