Microsoft Speech SDK
SAPI 5.1
CSpEvent::Deserialize
CSpEvent::Deserialize sets the current instance to the deserialized version of the specified event.
The current instance is cleared first. The original event is not modified.
template <class T>
HRESULT Deserialize(
const T *pSerEvent,
ULONG *pcbUsed = NULL
);
Parameters
- pSerEvent
- The serialized event.
- pcbUsed
- Optional parameter passing back the number of bytes of the instance. The default NULL does not pass back any value; TRUE, does.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_OUTOFMEMORY | Exceeded available memory. |