Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Serialize (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

CSpEvent::Serialize

CSpEvent::Serialize copies an event instance and then serializes the new instance. The new instance must be based on SPSERIALIZEDEVENT or SPSERIALIZEDEVENT64


void Serialize(
    T    *pSerEvent
);

Parameters

pSerEvent
[ out ] The event for the passed back serialization. Member elParamType must not be SPET_LPARAM_IS_OBJECT.

Return values

None, however member SerializedlParam is set to the size of the serialized structure.



Copies an existing event instance and then serializes the new instance.


HRESULT Serialize(
   T      **ppCoMemSerEvent,
   ULONG   *pcbSerEvent
   );

Parameters

ppCoMemSerEvent
[ out ] The event for the passed back serialization. It is allocated and serialized. When no longer required, it must be manually freed with CoMemTaskFree().
pcbSerEvent
[ out ] The number of bytes allocated for the serialization. On an error, it will be zero.

Return values

ValueDescription
S_OKSerialization completed successfully.
E_OUTOFMEMORYExceeded available memory.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.